//
//  LSKidsLeftAtHomeFoundationInfoCollectViewController.m
//  LaSaCivilAffairsDepartment
//
//  Created by 聂志康 on 2019/1/9.
//  Copyright © 2019 wpkj. All rights reserved.
//

#import "LSKidsLeftAtHomeFoundationInfoCollectViewController.h"
#import "LSInfoCollectTableViewCell.h"
#import "LSDatePickViewController.h"
#import "LSInfoSelectController.h"
#import "NZKTextView.h"
#import "LSMultipleSelectView.h"

#define FontSize 14

@interface LSKidsLeftAtHomeFoundationInfoCollectViewController () <UITableViewDelegate, UITableViewDataSource, UITextFieldDelegate, UITextViewDelegate>
@property (nonatomic, strong) UITableView *tableView;
@property (nonatomic, strong) NSArray *sectionTitleArray;
@property (nonatomic, strong) NSMutableArray *childContentArrayM;
@property (nonatomic, strong) NSMutableArray *familyContentArrayM;
@property (nonatomic, strong) NSMutableArray *custodyContentArrayM;
@property (nonatomic, strong) UIView *tableViewFooterView;
@property (nonatomic, strong) NSDictionary *downSelectDict;
@property (nonatomic, strong) NSArray *pickerDataArray;
@property (nonatomic, assign) BOOL isCheckedBefore;
// 判断值
@property (nonatomic, assign) BOOL childIsLiuShou;
@property (nonatomic, assign) BOOL fatherIsDisable;
@property (nonatomic, assign) BOOL motherIsDisable;
@property (nonatomic, assign) BOOL isBothOut;
// 控件
@property (nonatomic, strong) UITextField *nameTF;//姓名(Y)
@property (nonatomic, strong) UITextField *registerTypeTF;//户口性质(Y)
@property (nonatomic, strong) UITextField *nationTF;//民族(Y)
@property (nonatomic, strong) UITextField *sexTF;//性别(Y)
@property (nonatomic, strong) UITextField *personalIDCardTF;//身份证号(Y)
@property (nonatomic, strong) UITextField *birthdayTF;//生日(Y)
@property (nonatomic, strong) UITextField *regionCodeTF;//户籍地地址(Y)
@property (nonatomic, strong) NZKTextView *addressRegisterTV;//户籍地详细地址(Y)
@property (nonatomic, strong) NZKTextView *addressTV;//现住址(Y)
@property (nonatomic, strong) UITextField *physicalConditionTF;//身体状况(Y)
@property (nonatomic, strong) UITextField *doubtfulDisabilityTypeTF;//疑似残疾类型
@property (nonatomic, strong) UITextField *disabilitySelectTF;//残疾类别
@property (nonatomic, strong) UITextField *disabilityLevelTF;//残疾等级
@property (nonatomic, strong) UITextField *seriousIllnessTypeTF;//大病病种
@property (nonatomic, strong) UITextField *reportTypeTF;//上报类型(Y)
@property (nonatomic, strong) UITextField *poorFamilyTypeTF;//家庭贫困(Y)
@property (nonatomic, strong) UITextField *custodyDilemmaTF;//监护困境
@property (nonatomic, strong) UITextField *custodyNobodyTF;//事实无人抚养(Y)
@property (nonatomic, strong) UITextField *schoolingTF;//就学情况(Y)
@property (nonatomic, strong) UITextField *lodingTF;//是否学校寄宿
@property (nonatomic, strong) UITextField *otherSpecialTF;//其他特殊情况
@property (nonatomic, strong) NZKTextView *otherSpecialOtherTV;
@property (nonatomic, strong) UITextField *socialAssistanceTF;//社会福利、救助、扶贫落实情况
@property (nonatomic, strong) NZKTextView *socialAssistanceOtherTV;
@property (nonatomic, strong) UITextField *encroachTF;//有无发生遭受监护人侵害的情形
@property (nonatomic, strong) NZKTextView *encroachOtherTV;

@property (nonatomic, strong) UITextField *grandfatherNameTF;//祖父姓名(Y)
@property (nonatomic, strong) UITextField *grandfatherBirthdayTF;//祖父生日(Y)
@property (nonatomic, strong) UITextField *grandmotherNameTF;//祖母姓名(Y)
@property (nonatomic, strong) UITextField *grandmotherBirthdayTF;//祖母生日(Y)
@property (nonatomic, strong) UITextField *fatherNameTF;//父亲姓名(Y)
@property (nonatomic, strong) UITextField *fatherBirthdayTF;//父亲生日(Y)
@property (nonatomic, strong) UITextField *fatherTelephoneTF;//父亲电话(Y)
@property (nonatomic, strong) UITextField *fatherIdcardTF;//父亲身份证号(Y)
@property (nonatomic, strong) UITextField *fatherRegisterRegionNameTF;//父亲户籍所在地(Y)
@property (nonatomic, strong) NZKTextView *fatherRegisterAddrTV;//父亲户籍所在地址(Y)
@property (nonatomic, strong) UITextField *fatherWorkplaceNameTF;//父亲务工地
@property (nonatomic, strong) NZKTextView *fatherWorkerAddrTV;//父亲务工详细地址
@property (nonatomic, strong) UITextField *fatherHealthTF;//父亲健康情况
@property (nonatomic, strong) UITextField *fatherDisTypeTF;//父亲残疾类别
@property (nonatomic, strong) UITextField *fatherDisLevelTF;//父亲残疾等级
@property (nonatomic, strong) UITextField *fatherSeriousIllnessTypeTF;
@property (nonatomic, strong) UITextField *fatherFamilyshipTF;//父亲家庭经济来源
@property (nonatomic, strong) NZKTextView *fatherFamilyshipOtherTV;
@property (nonatomic, strong) UITextField *fatherOtherSpecialTF;//父亲其他特殊情况
@property (nonatomic, strong) NZKTextView *fatherOtherSpecialOtherTV;
@property (nonatomic, strong) UITextField *motherNameTF;//母亲姓名(Y)
@property (nonatomic, strong) UITextField *motherBirthdayTF;//母亲生日(Y)
@property (nonatomic, strong) UITextField *motherTelephoneTF;//母亲电话(Y)
@property (nonatomic, strong) UITextField *motherIdcardTF;//母亲身份证号(Y)
@property (nonatomic, strong) UITextField *motherRegisterRegionNameTF;//母亲户籍所在地(Y)
@property (nonatomic, strong) NZKTextView *motherRegisterAddrTV;//母亲户籍所在地址(Y)
@property (nonatomic, strong) UITextField *motherWorkplaceNameTF;//母亲务工地(Y)
@property (nonatomic, strong) NZKTextView *motherWorkerAddrTV;//母亲务工详细地址(Y)
@property (nonatomic, strong) UITextField *motherHealthTF;//母亲健康情况(Y)
@property (nonatomic, strong) UITextField *motherDisTypeTF;//母亲残疾类别
@property (nonatomic, strong) UITextField *motherDisLevelTF;//母亲残疾等级
@property (nonatomic, strong) UITextField *motherSeriousIllnessTypeTF;
@property (nonatomic, strong) UITextField *motherFamilyshipTF;//母亲家庭经济来源
@property (nonatomic, strong) NZKTextView *motherFamilyshipOtherTV;
@property (nonatomic, strong) UITextField *motherOtherSpecialTF;//母亲其他特殊情况
@property (nonatomic, strong) NZKTextView *motherOtherSpecialOtherTV;

@property (nonatomic, strong) UITextField *alloutTF;//双亲是否同时外出(Y)
@property (nonatomic, strong) UITextField *oneoutTF;//双亲是否一方外出（另一方无监护能力）(Y)
@property (nonatomic, strong) UITextField *whoCantTF;//父母哪一方无监护能力
@property (nonatomic, strong) UITextField *delegationTF;//是否委托其他监护人(Y)
@property (nonatomic, strong) UITextField *guardianNameTF;//监护人姓名
@property (nonatomic, strong) UITextField *guardianTelephoneTF;//监护人电话
@property (nonatomic, strong) UITextField *guardianIdcardTF;//监护人身份证号
@property (nonatomic, strong) NZKTextView *guardianAddressTV;//居住地址
@property (nonatomic, strong) UITextField *guardianShipTF;//与儿童的关系
@property (nonatomic, strong) UITextField *guardianTypeTF;//监护类型
@property (nonatomic, strong) UITextField *guardianPhysicalConditionTF;//健康情况
@property (nonatomic, strong) UITextField *guardianDisabilitySelectTF;//残疾类别
@property (nonatomic, strong) UITextField *guardianDisabilityLevelTF;//残疾等级
@property (nonatomic, strong) UITextField *guardianSeriousIllnessTypeTF;//大病病种
@property (nonatomic, strong) UITextField *guardianOtherSpecialTF;//其他特殊情况
@property (nonatomic, strong) UITextField *guardianScoreTF;//监护情况评估(Y)
@property (nonatomic, strong) UITextField *salvationConditionTF;//救助帮扶情况(Y)
@property (nonatomic, strong) UITextField *responsibilityTF;//负责人(Y)
@property (nonatomic, strong) UITextField *orgPhoneTF;//联系电话(Y)
@property (nonatomic, strong) UITextField *orgTelephoneTF;//固定电话
@property (nonatomic, strong) UITextField *institutionalNatureTF;//机构性质
@property (nonatomic, strong) NZKTextView *orgAddressTV;//机构地址
@property (nonatomic, strong) UITextField *helpProposalTF;//帮扶建议

// 选择内容数组
@property (nonatomic, strong) NSArray *registerTypeTFArray;
@property (nonatomic, strong) NSArray *nationTFArray;
@property (nonatomic, strong) NSArray *sexTFArray;
@property (nonatomic, strong) NSArray *physicalConditionTFArray;
@property (nonatomic, strong) NSArray *doubtfulDisabilityTypeTFArray;//疑似残疾类型
@property (nonatomic, strong) NSArray *disabilitySelectTFArray;//残疾类别
@property (nonatomic, strong) NSArray *disabilityLevelTFArray;//残疾等级
@property (nonatomic, strong) NSArray *seriousIllnessTypeTFArray;//大病病种
@property (nonatomic, strong) NSArray *reportTypeTFArray;
@property (nonatomic, strong) NSArray *poorFamilyTypeTFArray;
@property (nonatomic, strong) NSArray *custodyDilemmaTFArray;
@property (nonatomic, strong) NSArray *custodyNobodyTFArray;
@property (nonatomic, strong) NSArray *schoolingTFArray;
@property (nonatomic, strong) NSArray *lodingTFArray;
@property (nonatomic, strong) NSArray *otherSpecialTFArray;
@property (nonatomic, strong) NSArray *socialAssistanceTFArray;
@property (nonatomic, strong) NSArray *encroachTFArray;

@property (nonatomic, strong) NSArray *fatherHealthTFArray;
@property (nonatomic, strong) NSArray *fatherDisTypeTFArray;
@property (nonatomic, strong) NSArray *fatherDisLevelTFArray;
@property (nonatomic, strong) NSArray *fatherSeriousIllnessTypeTFArray;
@property (nonatomic, strong) NSArray *fatherFamilyshipTFArray;
@property (nonatomic, strong) NSArray *fatherOtherSpecialTFArray;
@property (nonatomic, strong) NSArray *motherHealthTFArray;
@property (nonatomic, strong) NSArray *motherDisTypeTFArray;
@property (nonatomic, strong) NSArray *motherDisLevelTFArray;
@property (nonatomic, strong) NSArray *motherSeriousIllnessTypeTFArray;
@property (nonatomic, strong) NSArray *motherFamilyshipTFArray;
@property (nonatomic, strong) NSArray *motherOtherSpecialTFArray;

@property (nonatomic, strong) NSArray *alloutTFArray;
@property (nonatomic, strong) NSArray *oneoutTFArray;
@property (nonatomic, strong) NSArray *whoCantTFArray;
@property (nonatomic, strong) NSArray *delegationTFArray;
@property (nonatomic, strong) NSArray *guardianShipTFArray;//与儿童的关系
@property (nonatomic, strong) NSArray *guardianTypeTFArray;//监护类型
@property (nonatomic, strong) NSArray *guardianPhysicalConditionTFArray;//健康情况
@property (nonatomic, strong) NSArray *guardianDisabilitySelectTFArray;//残疾类别
@property (nonatomic, strong) NSArray *guardianDisabilityLevelTFArray;//残疾等级
@property (nonatomic, strong) NSArray *guardianSeriousIllnessTypeTFArray;//大病病种
@property (nonatomic, strong) NSArray *guardianOtherSpecialTFArray;//其他特殊情况
@property (nonatomic, strong) NSArray *guardianScoreTFArray;
@property (nonatomic, strong) NSArray *salvationConditionTFArray;
@property (nonatomic, strong) NSArray *institutionalNatureTFArray;
@property (nonatomic, strong) NSArray *helpProposalTFArray;

@property (nonatomic, copy) NSString *thisID;
@end

static NSString *KidsLeftAtHomeFoundationInfoCollectCellID = @"KidsLeftAtHomeFoundationInfoCollectCellID";

static NSString *string1_1 = @"姓名：";
static NSString *string1_2 = @"身份证号：";
static NSString *string1_3 = @"出生日期：";
static NSString *string1_4 = @"性别：";
static NSString *string1_5 = @"户口性质：";
static NSString *string1_6 = @"民族：";
static NSString *string1_7 = @"户口所在地：";
static NSString *string1_8 = @"户口地址(详细)：";
static NSString *string1_9 = @"现居住地：";
static NSString *string1_10 = @"身体状况：";
static NSString *string1_11 = @"疑似残疾类型：";
static NSString *string1_12 = @"伤残类型：";
static NSString *string1_13 = @"伤残级别：";
static NSString *string1_14 = @"大病病种：";
static NSString *string1_15 = @"上报类型：";
static NSString *string1_16 = @"家庭贫困：";
static NSString *string1_17 = @"监护困境：";
static NSString *string1_18 = @"事实无人抚养：";
static NSString *string1_19 = @"就学情况：";
static NSString *string1_20 = @"是否学校寄宿：";
static NSString *string1_21 = @"其他特殊情况：";
static NSString *string1_22 = @"请输入其他特殊情况";
static NSString *string1_23 = @"福利、救助、扶贫落实情况：";
static NSString *string1_24 = @"请输入其他福利、救助、扶贫落实情况";
static NSString *string1_25 = @"有无发生遭受监护人侵害的情形：";
static NSString *string1_26 = @"请输入其他有发生遭受监护人侵害的情形";

static NSString *string2_1 = @"祖父姓名：";
static NSString *string2_2 = @"祖父生日：";
static NSString *string2_3 = @"祖母姓名：";
static NSString *string2_4 = @"祖母生日：";
static NSString *string2_5 = @"父亲姓名：";
static NSString *string2_6 = @"父亲身份证号：";
static NSString *string2_7 = @"父亲生日：";
static NSString *string2_8 = @"父亲电话：";
static NSString *string2_9 = @"父亲户籍所在地：";
static NSString *string2_10 = @"父亲户籍所在地址：";
static NSString *string2_11 = @"父亲务工地：";
static NSString *string2_12 = @"父亲务工详细地址：";
static NSString *string2_13 = @"父亲健康情况：";
static NSString *string2_14 = @"父亲残疾类别：";
static NSString *string2_15 = @"父亲残疾等级：";
static NSString *string2_16 = @"父亲大病病种：";
static NSString *string2_17 = @"父亲家庭经济来源：";
static NSString *string2_18 = @"请输入父亲其他家庭经济来源";
static NSString *string2_19 = @"父亲其他特殊情况：";
static NSString *string2_20 = @"请输入父亲其他特殊情况";
static NSString *string2_21 = @"母亲姓名：";
static NSString *string2_22 = @"母亲身份证号：";
static NSString *string2_23 = @"母亲生日：";
static NSString *string2_24 = @"母亲电话：";
static NSString *string2_25 = @"母亲户籍所在地：";
static NSString *string2_26 = @"母亲户籍所在地址：";
static NSString *string2_27 = @"母亲务工地：";
static NSString *string2_28 = @"母亲务工详细地址：";
static NSString *string2_29 = @"母亲健康情况：";
static NSString *string2_30 = @"母亲残疾类别：";
static NSString *string2_31 = @"母亲残疾等级：";
static NSString *string2_32 = @"母亲大病病种：";
static NSString *string2_33 = @"母亲家庭经济来源：";
static NSString *string2_34 = @"请输入母亲其他家庭经济来源";
static NSString *string2_35 = @"母亲其他特殊情况：";
static NSString *string2_36 = @"请输入母亲其他特殊情况";

static NSString *string3_1 = @"双亲是否同时外出：";
static NSString *string3_2 = @"双亲是否一方外出(另一方无监护能力)：";
static NSString *string3_3 = @"父母哪一方无监护能力：";
static NSString *string3_4 = @"是否委托其他监护人：";
static NSString *string3_5 = @"监护人姓名：";
static NSString *string3_6 = @"监护人电话：";
static NSString *string3_7 = @"监护人身份证号：";
static NSString *string3_8 = @"居住地址：";
static NSString *string3_9 = @"与儿童的关系：";
static NSString *string3_10 = @"监护类型：";
static NSString *string3_11 = @"健康情况：";
static NSString *string3_12 = @"残疾类别：";
static NSString *string3_13 = @"残疾等级：";
static NSString *string3_23 = @"大病病种：";
static NSString *string3_14 = @"其他特殊情况：";
static NSString *string3_15 = @"监护情况评估：";
static NSString *string3_16 = @"救助帮扶情况：";
static NSString *string3_17 = @"负责人：";
static NSString *string3_18 = @"联系电话：";
static NSString *string3_19 = @"固定电话：";
static NSString *string3_20 = @"单位性质：";
static NSString *string3_21 = @"机构地址：";
static NSString *string3_22 = @"帮扶建议：";

@implementation LSKidsLeftAtHomeFoundationInfoCollectViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = UIColor.whiteColor;
    self.isCheckedBefore = false;
    [self loadKeyValues];
    self.childIsLiuShou = false;
    self.fatherIsDisable = false;
    self.motherIsDisable = false;
    self.isBothOut = true;
    if (self.isCheck) {
        self.isCheckedBefore = true;
//        UIButton *editButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 50, 44)];
//        [editButton setTitle:@"编辑" forState:UIControlStateNormal];
//        [editButton setTitleColor:UIColor.whiteColor forState:UIControlStateNormal];
//        editButton.titleLabel.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:14];
//        [editButton addTarget:self action:@selector(editButtonClick) forControlEvents:UIControlEventTouchUpInside];
//        UIBarButtonItem *editItem = [[UIBarButtonItem alloc] initWithCustomView:editButton];
//        self.navigationItem.rightBarButtonItem = editItem;
        [self loadData];
        self.title = @"留守儿童基础信息详情";
    } else {
        self.title = @"留守儿童基础信息采集";
    }
    [self.view addSubview:self.tableView];
}

- (void)getLocationInfoWithCode:(NSString *)code forTextField:(UITextField *)textField {
    if (![code isEqualToString:@""]) {
        NSString *shengCodeString = [NSString stringWithFormat:@"%@0000",[code substringToIndex:2]];
        NSString *shiCodeString = [NSString stringWithFormat:@"%@00",[code substringToIndex:4]];
        NSMutableString *shengshiquString = [[NSMutableString alloc] initWithString:@""];
        for (NSDictionary *shengDict in self.pickerDataArray) {
            if ([shengDict[@"areaId"] isEqualToString:shengCodeString]) {
                [shengshiquString appendString:shengDict[@"areaName"]];
                NSArray *citiesArray = shengDict[@"cities"];
                for (NSDictionary *shiDict in citiesArray) {
                    if ([shiDict[@"areaId"] isEqualToString:shiCodeString]) {
                        [shengshiquString appendFormat:@" %@",shiDict[@"areaName"]];
                        NSArray *quArray = shiDict[@"counties"];
                        for (NSDictionary *quDict in quArray) {
                            if ([quDict[@"areaId"] isEqualToString:code]) {
                                [shengshiquString appendFormat:@" %@",quDict[@"areaName"]];
                                break;
                            }
                        }
                        break;
                    }
                }
                break;
            }
        }
        textField.text = shengshiquString.copy;
        textField.placeholder = code;
    }
}

- (NSArray *)pickerDataArray {
    if (!_pickerDataArray) {
        NSData *JSONData = [NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"city" ofType:@"json"]];
        _pickerDataArray = [NSJSONSerialization JSONObjectWithData:JSONData options:NSJSONReadingAllowFragments error:nil];
    }
    return _pickerDataArray;
}

- (void)loadKeyValues {
    MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:true];
    [NetworkUtils requestNOHandleWithMethod:@"POST" URL:OldLicmsDictionary param:@{@"token":[ValidateUtils validateNull:[UserInfoModel sharedInstance].token]} completionHandler:^(id responseObject, NSError *connectionError) {
        [hud hideAnimated:true];
        if (!connectionError) {
            NSNumber *status = [responseObject objectForKey:@"status"];
            if (status.integerValue == 200) {
                NSDictionary *dataDict = [responseObject objectForKey:@"data"];
                self.downSelectDict = dataDict;
                [self arrangeDownSelectArrays];
                if (self.isCheck) [self arrangeData];
            } else {
                [MBProgressHUD showTipMessageInWindow:[ValidateUtils validateNull:responseObject[@"message"]]];
            }
        } else {
            [MBProgressHUD showTipMessageInWindow:connectionError.localizedDescription];
        }
    }];
}

- (void)arrangeDownSelectArrays {
    NSArray *register_typeArray = self.downSelectDict[@"register_type"];//户口性质
    if (register_typeArray && register_typeArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        for (NSDictionary *dict in register_typeArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.registerTypeTFArray = arrayM.copy;
        if (!self.isCheck && [self.registerTypeTF.text isEqualToString:@""]) self.registerTypeTF.text = arrayM.firstObject;
    }
    
    NSArray *nationArray = self.downSelectDict[@"nation_select"];
    if (nationArray && nationArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        for (NSDictionary *dict in nationArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.nationTFArray = arrayM.copy;
        if (!self.isCheck && [self.nationTF.text isEqualToString:@""]) self.nationTF.text = arrayM.firstObject;
    }
    
    NSArray *sexArray = self.downSelectDict[@"children_gender"];
    if (sexArray && sexArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        for (NSDictionary *dict in sexArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.sexTFArray = arrayM.copy;
//        if (!self.isCheck && [self.sexTF.text isEqualToString:@""]) self.sexTF.text = arrayM.firstObject;
    }
    
    NSArray *physical_conditionArray = self.downSelectDict[@"physical_condition"];//身体状况
    if (physical_conditionArray && physical_conditionArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        [arrayM addObject:@"请选择"];
        for (NSDictionary *dict in physical_conditionArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.physicalConditionTFArray = arrayM.copy;
        if (!self.isCheck && [self.physicalConditionTF.text isEqualToString:@""]) self.physicalConditionTF.text = arrayM.firstObject;
        self.fatherHealthTFArray = arrayM.copy;
        if (!self.isCheck && [self.fatherHealthTF.text isEqualToString:@""]) self.fatherHealthTF.text = arrayM.firstObject;
        self.motherHealthTFArray = arrayM.copy;
        if (!self.isCheck && [self.motherHealthTF.text isEqualToString:@""]) self.motherHealthTF.text = arrayM.firstObject;
    }
    
    NSArray *doubtful_disability_typeArray = self.downSelectDict[@"doubtful_disability_type"];//疑似残疾类型
    if (doubtful_disability_typeArray && doubtful_disability_typeArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        [arrayM addObject:@"请选择"];
        for (NSDictionary *dict in doubtful_disability_typeArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.doubtfulDisabilityTypeTFArray = arrayM.copy;
        if (!self.isCheck && [self.doubtfulDisabilityTypeTF.text isEqualToString:@""]) self.doubtfulDisabilityTypeTF.text = arrayM.firstObject;
    }
    
    NSArray *disability_selectArray = self.downSelectDict[@"disability_select"];//儿童。父亲。母亲残疾类别
    if (disability_selectArray && disability_selectArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        [arrayM addObject:@"请选择"];
        for (NSDictionary *dict in disability_selectArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.disabilitySelectTFArray = arrayM.copy;
        if (!self.isCheck && [self.disabilitySelectTF.text isEqualToString:@""]) self.disabilitySelectTF.text = arrayM.firstObject;
        self.fatherDisTypeTFArray = arrayM.copy;
        if (!self.isCheck && [self.fatherDisTypeTF.text isEqualToString:@""]) self.fatherDisTypeTF.text = arrayM.firstObject;
        self.motherDisTypeTFArray = arrayM.copy;
        if (!self.isCheck && [self.motherDisTypeTF.text isEqualToString:@""]) self.motherDisTypeTF.text = arrayM.firstObject;
    }
    
    NSArray *disability_levelArray = self.downSelectDict[@"disability_level"];//儿童。父亲。母亲残疾等级
    if (disability_levelArray && disability_levelArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        for (NSDictionary *dict in disability_levelArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.disabilityLevelTFArray = arrayM.copy;
        if (!self.isCheck && [self.disabilityLevelTF.text isEqualToString:@""]) self.disabilityLevelTF.text = arrayM.firstObject;
        self.fatherDisLevelTFArray = arrayM.copy;
        if (!self.isCheck && [self.fatherDisLevelTF.text isEqualToString:@""]) self.fatherDisLevelTF.text = arrayM.firstObject;
        self.motherDisLevelTFArray = arrayM.copy;
        if (!self.isCheck && [self.motherDisLevelTF.text isEqualToString:@""]) self.motherDisLevelTF.text = arrayM.firstObject;
    }
    
    NSArray *serious_illness_typeArray = self.downSelectDict[@"serious_illness_type"];//大病病种
    if (serious_illness_typeArray && serious_illness_typeArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        [arrayM addObject:@"请选择"];
        for (NSDictionary *dict in serious_illness_typeArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.seriousIllnessTypeTFArray = arrayM.copy;
        self.fatherSeriousIllnessTypeTFArray = arrayM.copy;
        self.motherSeriousIllnessTypeTFArray = arrayM.copy;
        if (!self.isCheck && [self.seriousIllnessTypeTF.text isEqualToString:@""]) self.seriousIllnessTypeTF.text = arrayM.firstObject;
        if (!self.isCheck && [self.fatherSeriousIllnessTypeTF.text isEqualToString:@""]) self.fatherSeriousIllnessTypeTF.text = arrayM.firstObject;
        if (!self.isCheck && [self.motherSeriousIllnessTypeTF.text isEqualToString:@""]) self.motherSeriousIllnessTypeTF.text = arrayM.firstObject;
    }
    
    NSArray *report_typeArray = self.downSelectDict[@"report_type"];//上报类型
    if (report_typeArray && report_typeArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        [arrayM addObject:@"请选择"];
        for (NSDictionary *dict in report_typeArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.reportTypeTFArray = arrayM.copy;
        if (!self.isCheck && [self.reportTypeTF.text isEqualToString:@""]) self.reportTypeTF.text = arrayM.firstObject;
    }
    
    NSArray *poor_family_typeArray = self.downSelectDict[@"poor_family_type"];//家庭贫困
    if (poor_family_typeArray && poor_family_typeArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        [arrayM addObject:@"请选择"];
        for (NSDictionary *dict in poor_family_typeArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.poorFamilyTypeTFArray = arrayM.copy;
        if (!self.isCheck && [self.poorFamilyTypeTF.text isEqualToString:@""]) self.poorFamilyTypeTF.text = arrayM.firstObject;
    }
    
    NSArray *custody_dilemmaArray = self.downSelectDict[@"custody_dilemma"];//监护困境
    if (custody_dilemmaArray && custody_dilemmaArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        [arrayM addObject:@"请选择"];
        for (NSDictionary *dict in custody_dilemmaArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.custodyDilemmaTFArray = arrayM.copy;
        if (!self.isCheck && [self.custodyDilemmaTF.text isEqualToString:@""]) self.custodyDilemmaTF.text = arrayM.firstObject;
    }
    
    NSArray *custody_nobodyArray = self.downSelectDict[@"custody_nobody"];//事实无人抚养
    if (custody_nobodyArray && custody_nobodyArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        NSString *A_option = @"";
        for (NSDictionary *dict in custody_nobodyArray) {
            if ([[ValidateUtils validateNull:dict[@"value"]] rangeOfString:@"A"].length > 0) A_option = dict[@"value"];
        }
        for (NSDictionary *dict in custody_nobodyArray) {
            if ([[ValidateUtils validateNull:dict[@"value"]] rangeOfString:@"A"].length > 0) {
                [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
            } else if ([[ValidateUtils validateNull:dict[@"value"]] rangeOfString:@"B"].length > 0) {
                if (A_option.length > [ValidateUtils validateNull:dict[@"value"]].length) {
                    NSMutableString *B_optionM = [[NSMutableString alloc] initWithString:[ValidateUtils validateNull:dict[@"value"]]];
                    for (int i = 0; i < A_option.length-[ValidateUtils validateNull:dict[@"value"]].length; i++) {
                        [B_optionM appendString:@" "];
                    }
                    [B_optionM appendString:@"                  "];
                    [arrayM addObject:B_optionM.copy];
                } else {
                    [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
                }
            } else if ([[ValidateUtils validateNull:dict[@"value"]] rangeOfString:@"D"].length > 0) {
                if (A_option.length > [ValidateUtils validateNull:dict[@"value"]].length) {
                    NSMutableString *D_optionM = [[NSMutableString alloc] initWithString:[ValidateUtils validateNull:dict[@"value"]]];
                    for (int i = 0; i < A_option.length-[ValidateUtils validateNull:dict[@"value"]].length; i++) {
                        [D_optionM appendString:@" "];
                    }
                    [D_optionM appendString:@"                  "];
                    [arrayM addObject:D_optionM.copy];
                } else {
                    [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
                }
            } else {
                [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
            }
        }
        self.custodyNobodyTFArray = arrayM.copy;
        if (!self.isCheck && [self.custodyNobodyTF.text isEqualToString:@""]) self.custodyNobodyTF.text = arrayM.firstObject;
    }
    
    NSArray *schoolingArray = self.downSelectDict[@"schooling"];//就学情况
    if (schoolingArray && schoolingArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        for (NSDictionary *dict in schoolingArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.schoolingTFArray = arrayM.copy;
        if (!self.isCheck && [self.schoolingTF.text isEqualToString:@""]) self.schoolingTF.text = arrayM.firstObject;
    }
    
    NSArray *lodingArray = self.downSelectDict[@"loding"];//是否学校寄宿
    if (lodingArray && lodingArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        for (NSDictionary *dict in lodingArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.lodingTFArray = arrayM.copy;
        if (!self.isCheck && [self.lodingTF.text isEqualToString:@""]) self.lodingTF.text = arrayM.firstObject;
    }
    
    NSArray *other_specialArray = self.downSelectDict[@"other_special"];//其他特殊情况
    if (other_specialArray && other_specialArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        [arrayM addObject:@"请选择"];
        for (NSDictionary *dict in other_specialArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.otherSpecialTFArray = arrayM.copy;
        if (!self.isCheck && [self.otherSpecialTF.text isEqualToString:@""]) self.otherSpecialTF.text = arrayM.firstObject;
    }
    
    NSArray *social_assistanceArray = self.downSelectDict[@"social_assistance"];//社会福利，救助，扶贫落实情况
    if (social_assistanceArray && social_assistanceArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        [arrayM addObject:@"请选择"];
        for (NSDictionary *dict in social_assistanceArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.socialAssistanceTFArray = arrayM.copy;
        if (!self.isCheck && [self.socialAssistanceTF.text isEqualToString:@""]) self.socialAssistanceTF.text = arrayM.firstObject;
    }
    
    NSArray *encroachArray = self.downSelectDict[@"encroach"];//有无发生遭受监护人侵害的情形
    if (encroachArray && encroachArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        [arrayM addObject:@"请选择"];
        for (NSDictionary *dict in encroachArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.encroachTFArray = arrayM.copy;
        if (!self.isCheck && [self.encroachTF.text isEqualToString:@""]) self.encroachTF.text = arrayM.firstObject;
    }
    
    NSArray *source_incomeArray = self.downSelectDict[@"source_income"];//父亲。母亲家庭经济来源
    if (source_incomeArray && source_incomeArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        [arrayM addObject:@"请选择"];
        for (NSDictionary *dict in source_incomeArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.fatherFamilyshipTFArray = arrayM.copy;
        if (!self.isCheck && [self.fatherFamilyshipTF.text isEqualToString:@""]) self.fatherFamilyshipTF.text = arrayM.firstObject;
        self.motherFamilyshipTFArray = arrayM.copy;
        if (!self.isCheck && [self.motherFamilyshipTF.text isEqualToString:@""]) self.motherFamilyshipTF.text = arrayM.firstObject;
    }
    
    NSArray *other_special_adultArray = self.downSelectDict[@"other_special_adult"];//父亲。母亲其他特殊情况
    if (other_special_adultArray && other_special_adultArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        [arrayM addObject:@"请选择"];
        for (NSDictionary *dict in other_special_adultArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.fatherOtherSpecialTFArray = arrayM.copy;
        if (!self.isCheck && [self.fatherOtherSpecialTF.text isEqualToString:@""]) self.fatherOtherSpecialTF.text = arrayM.firstObject;
        self.motherOtherSpecialTFArray = arrayM.copy;
        if (!self.isCheck && [self.motherOtherSpecialTF.text isEqualToString:@""]) self.motherOtherSpecialTF.text = arrayM.firstObject;
    }
    
    NSArray *all_outArray = self.downSelectDict[@"all_out"];//双亲是否同时外出
    if (all_outArray && all_outArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        for (NSDictionary *dict in all_outArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.alloutTFArray = arrayM.copy;
        if (!self.isCheck && [self.alloutTF.text isEqualToString:@""]) self.alloutTF.text = arrayM.firstObject;
        if ([arrayM.firstObject isEqualToString:@"是"]) {
            [self.custodyContentArrayM removeObjectsInArray:@[string3_2,string3_3]];
        } else {
            [self.custodyContentArrayM insertObjects:@[string3_2] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(1, 1)]];
        }
    }
    
    NSArray *one_outArray = self.downSelectDict[@"one_out"];//双亲是否一方外出（另一方无监护能力）
    if (one_outArray && one_outArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        for (NSDictionary *dict in one_outArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.oneoutTFArray = arrayM.copy;
        if (!self.isCheck && [self.oneoutTF.text isEqualToString:@""]) self.oneoutTF.text = arrayM.firstObject;
        if ([arrayM.firstObject isEqualToString:@"是"] && ![self.alloutTF.text isEqualToString:@""] && ![self.alloutTF.text isEqualToString:@"是"]) {
            [self.custodyContentArrayM insertObjects:@[string3_3] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(2, 1)]];
        } else {
            [self.custodyContentArrayM removeObjectsInArray:@[string3_3]];
        }
    }
    
    NSArray *who_cantArray = self.downSelectDict[@"who_cant"];//父母哪一方无监护能力
    if (who_cantArray && who_cantArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        for (NSDictionary *dict in who_cantArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.whoCantTFArray = arrayM.copy;
        if (!self.isCheck && [self.whoCantTF.text isEqualToString:@""]) self.whoCantTF.text = arrayM.firstObject;
    }
    
    NSArray *delegationArray = self.downSelectDict[@"delegation"];//双亲是否委托其他监护人
    if (delegationArray && delegationArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        for (NSDictionary *dict in delegationArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.delegationTFArray = arrayM.copy;
        if (!self.isCheck && [self.delegationTF.text isEqualToString:@""]) self.delegationTF.text = arrayM.firstObject;
        if ([arrayM.firstObject isEqualToString:@"是"]) {
            NSInteger index = [self.custodyContentArrayM indexOfObject:string3_4];
            [self.custodyContentArrayM insertObjects:@[string3_5,string3_6,string3_7,string3_8,string3_9,string3_10,string3_11,string3_14] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 8)]];
        } else {
            [self.custodyContentArrayM removeObjectsInArray:@[string3_5,string3_6,string3_7,string3_8,string3_9,string3_10,string3_11,string3_12,string3_13,string3_14]];
        }
    }
    
    NSArray *custodian_shipArray = self.downSelectDict[@"custodian_ship"];//与儿童的关系
    if (custodian_shipArray && custodian_shipArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        for (NSDictionary *dict in custodian_shipArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.guardianShipTFArray = arrayM.copy;
        if (!self.isCheck && [self.guardianShipTF.text isEqualToString:@""]) self.guardianShipTF.text = arrayM.firstObject;
    }
    
    NSArray *guardian_typeArray = self.downSelectDict[@"guardian_type"];//监护类型
    if (guardian_typeArray && guardian_typeArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        for (NSDictionary *dict in guardian_typeArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.guardianTypeTFArray = arrayM.copy;
        if (!self.isCheck && [self.guardianTypeTF.text isEqualToString:@""]) self.guardianTypeTF.text = arrayM.firstObject;
    }
    
    NSArray *guardianphysical_conditionArray = self.downSelectDict[@"physical_condition"];//健康情况
    if (guardianphysical_conditionArray && guardianphysical_conditionArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        [arrayM addObject:@"请选择"];
        for (NSDictionary *dict in guardianphysical_conditionArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.guardianPhysicalConditionTFArray = arrayM.copy;
        if (!self.isCheck && [self.guardianPhysicalConditionTF.text isEqualToString:@""]) self.guardianPhysicalConditionTF.text = arrayM.firstObject;
    }
    
    NSArray *guardiandisability_selectArray = self.downSelectDict[@"disability_select"];//残疾类别
    if (guardiandisability_selectArray && guardiandisability_selectArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        [arrayM addObject:@"请选择"];
        for (NSDictionary *dict in guardiandisability_selectArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.guardianDisabilitySelectTFArray = arrayM.copy;
        if (!self.isCheck && [self.guardianDisabilitySelectTF.text isEqualToString:@""]) self.guardianDisabilitySelectTF.text = arrayM.firstObject;
    }
    
    NSArray *guardiandisability_levelArray = self.downSelectDict[@"disability_level"];//残疾等级
    if (guardiandisability_levelArray && guardiandisability_levelArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        for (NSDictionary *dict in guardiandisability_levelArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.guardianDisabilityLevelTFArray = arrayM.copy;
        if (!self.isCheck && [self.guardianDisabilityLevelTF.text isEqualToString:@""]) self.guardianDisabilityLevelTF.text = arrayM.firstObject;
    }
    
    NSArray *gserious_illness_typeArray = self.downSelectDict[@"serious_illness_type"];//大病病种
    if (gserious_illness_typeArray && gserious_illness_typeArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        [arrayM addObject:@"请选择"];
        for (NSDictionary *dict in gserious_illness_typeArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.guardianSeriousIllnessTypeTFArray = arrayM.copy;
        if (!self.isCheck && [self.guardianSeriousIllnessTypeTF.text isEqualToString:@""]) self.guardianSeriousIllnessTypeTF.text = arrayM.firstObject;
    }
    
    NSArray *guardianother_specialArray = self.downSelectDict[@"other_special"];//其他特殊情况
    if (guardianother_specialArray && guardianother_specialArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        [arrayM addObject:@"请选择"];
        for (NSDictionary *dict in guardianother_specialArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.guardianOtherSpecialTFArray = arrayM.copy;
        if (!self.isCheck && [self.guardianOtherSpecialTF.text isEqualToString:@""]) self.guardianOtherSpecialTF.text = arrayM.firstObject;
    }
    
    NSArray *guardian_scoreArray = self.downSelectDict[@"guardian_score"];//监护情况评估
    if (guardian_scoreArray && guardian_scoreArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        for (NSDictionary *dict in guardian_scoreArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.guardianScoreTFArray = arrayM.copy;
        if (!self.isCheck && [self.guardianScoreTF.text isEqualToString:@""]) self.guardianScoreTF.text = arrayM.firstObject;
    }
    
    NSArray *salvation_conditionArray = self.downSelectDict[@"salvation_condition"];//救助帮扶情况
    if (salvation_conditionArray && salvation_conditionArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        [arrayM addObject:@"请选择"];
        for (NSDictionary *dict in salvation_conditionArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.salvationConditionTFArray = arrayM.copy;
        if (!self.isCheck && [self.salvationConditionTF.text isEqualToString:@""]) self.salvationConditionTF.text = arrayM.firstObject;
    }
    
    NSArray *institutional_natureArray = self.downSelectDict[@"institutional_nature"];//机构性质
    if (institutional_natureArray && institutional_natureArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        for (NSDictionary *dict in institutional_natureArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.institutionalNatureTFArray = arrayM.copy;
        if (!self.isCheck && [self.institutionalNatureTF.text isEqualToString:@""]) self.institutionalNatureTF.text = arrayM.firstObject;
    }
    
    NSArray *help_proposalArray = self.downSelectDict[@"help_proposal"];//帮扶建议
    if (help_proposalArray && help_proposalArray.count > 0) {
        NSMutableArray *arrayM = [[NSMutableArray alloc] initWithArray:@[]];
        for (NSDictionary *dict in help_proposalArray) {
            [arrayM addObject:[ValidateUtils validateNull:dict[@"value"]]];
        }
        self.helpProposalTFArray = arrayM.copy;
        if (!self.isCheck && [self.helpProposalTF.text isEqualToString:@""]) self.helpProposalTF.text = arrayM.firstObject;
    }
    [self.tableView reloadData];
}

- (void)editButtonClickWithJump:(BOOL)JUMP {
    self.isCheck = false;
    self.navigationItem.rightBarButtonItem = nil;
    if (JUMP) {
        self.title = @"留守儿童基础数据编辑";
    } else {
        self.title = @"留守儿童基础信息采集";
    }
    self.tableView.tableFooterView = self.tableViewFooterView;
    
    [self.registerTypeTF removeFromSuperview];
    self.registerTypeTF = nil;
    [self.nationTF removeFromSuperview];
    self.nationTF = nil;
    [self.sexTF removeFromSuperview];
    self.sexTF = nil;
    [self.birthdayTF removeFromSuperview];
    self.birthdayTF = nil;
    [self.regionCodeTF removeFromSuperview];
    self.regionCodeTF = nil;
    [self.physicalConditionTF removeFromSuperview];
    self.physicalConditionTF = nil;
    [self.doubtfulDisabilityTypeTF removeFromSuperview];
    self.doubtfulDisabilityTypeTF = nil;
    [self.disabilitySelectTF removeFromSuperview];
    self.disabilitySelectTF = nil;
    [self.disabilityLevelTF removeFromSuperview];
    self.disabilityLevelTF = nil;
    [self.seriousIllnessTypeTF removeFromSuperview];
    self.seriousIllnessTypeTF = nil;
    [self.reportTypeTF removeFromSuperview];
    self.reportTypeTF = nil;
    [self.poorFamilyTypeTF removeFromSuperview];
    self.poorFamilyTypeTF = nil;
    [self.custodyDilemmaTF removeFromSuperview];
    self.custodyDilemmaTF = nil;
    [self.custodyNobodyTF removeFromSuperview];
    self.custodyNobodyTF = nil;
    [self.schoolingTF removeFromSuperview];
    self.schoolingTF = nil;
    [self.lodingTF removeFromSuperview];
    self.lodingTF = nil;
    [self.otherSpecialTF removeFromSuperview];
    self.otherSpecialTF = nil;
    [self.socialAssistanceTF removeFromSuperview];
    self.socialAssistanceTF = nil;
    [self.encroachTF removeFromSuperview];
    self.encroachTF = nil;
    
    [self.grandfatherBirthdayTF removeFromSuperview];
    self.grandfatherBirthdayTF = nil;
    [self.grandmotherBirthdayTF removeFromSuperview];
    self.grandmotherBirthdayTF = nil;
    [self.fatherBirthdayTF removeFromSuperview];
    self.fatherBirthdayTF = nil;
    [self.fatherRegisterRegionNameTF removeFromSuperview];
    self.fatherRegisterRegionNameTF = nil;
    [self.fatherWorkplaceNameTF removeFromSuperview];
    self.fatherWorkplaceNameTF = nil;
    [self.fatherHealthTF removeFromSuperview];
    self.fatherHealthTF = nil;
    [self.fatherDisTypeTF removeFromSuperview];
    self.fatherDisTypeTF = nil;
    [self.fatherDisLevelTF removeFromSuperview];
    self.fatherDisLevelTF = nil;
    [self.fatherFamilyshipTF removeFromSuperview];
    self.fatherFamilyshipTF = nil;
    [self.fatherOtherSpecialTF removeFromSuperview];
    self.fatherOtherSpecialTF = nil;
    [self.motherBirthdayTF removeFromSuperview];
    self.motherBirthdayTF = nil;
    [self.motherRegisterRegionNameTF removeFromSuperview];
    self.motherRegisterRegionNameTF = nil;
    [self.motherWorkplaceNameTF removeFromSuperview];
    self.motherWorkplaceNameTF = nil;
    [self.motherHealthTF removeFromSuperview];
    self.motherHealthTF = nil;
    [self.motherDisTypeTF removeFromSuperview];
    self.motherDisTypeTF = nil;
    [self.motherDisLevelTF removeFromSuperview];
    self.motherDisLevelTF = nil;
    [self.motherFamilyshipTF removeFromSuperview];
    self.motherFamilyshipTF = nil;
    [self.motherOtherSpecialTF removeFromSuperview];
    self.motherOtherSpecialTF = nil;
    
    [self.alloutTF removeFromSuperview];
    self.alloutTF = nil;
    [self.oneoutTF removeFromSuperview];
    self.oneoutTF = nil;
    [self.whoCantTF removeFromSuperview];
    self.whoCantTF = nil;
    [self.delegationTF removeFromSuperview];
    self.delegationTF = nil;
    [self.guardianShipTF removeFromSuperview];
    self.guardianShipTF = nil;
    [self.guardianTypeTF removeFromSuperview];
    self.guardianTypeTF = nil;
    [self.guardianPhysicalConditionTF removeFromSuperview];
    self.guardianPhysicalConditionTF = nil;
    [self.guardianDisabilitySelectTF removeFromSuperview];
    self.guardianDisabilitySelectTF = nil;
    [self.guardianDisabilityLevelTF removeFromSuperview];
    self.guardianDisabilityLevelTF = nil;
    [self.guardianSeriousIllnessTypeTF removeFromSuperview];
    self.guardianSeriousIllnessTypeTF = nil;
    [self.guardianOtherSpecialTF removeFromSuperview];
    self.guardianOtherSpecialTF = nil;
    [self.guardianScoreTF removeFromSuperview];
    self.guardianScoreTF = nil;
    [self.salvationConditionTF removeFromSuperview];
    self.salvationConditionTF = nil;
    [self.institutionalNatureTF removeFromSuperview];
    self.institutionalNatureTF = nil;
    [self.helpProposalTF removeFromSuperview];
    self.helpProposalTF = nil;
    
    [self.tableView reloadData];
    [self arrangeData];
}

- (void)loadData {
    self.thisID = self.displayDataDict[@"id"];
    [NetworkUtils requestNOHandleWithMethod:@"POST" URL:LSLcimsDetail param:@{@"token":[ValidateUtils validateNull:[UserInfoModel sharedInstance].token],@"id":self.displayDataDict[@"id"]} completionHandler:^(id responseObject, NSError *connectionError) {
        if (!connectionError) {
            NSNumber *status = [responseObject objectForKey:@"status"];
            if (status.integerValue == 200) {
                NSArray *dataArray = [responseObject objectForKey:@"data"];
                if (dataArray && dataArray.count > 0) {
                    self.displayDataDict = dataArray.firstObject;
                    if (self.displayDataDict && self.displayDataDict.count > 0) {
                        [self arrangeData];
                    }
                    if (self.jumpToEdit) [self editButtonClickWithJump:true];
                }
            } else {
                [MBProgressHUD showTipMessageInWindow:[ValidateUtils validateNull:responseObject[@"message"]]];
            }
        } else {
            [MBProgressHUD showTipMessageInWindow:connectionError.localizedDescription];
        }
    }];
}

- (void)arrangeData {
    NSArray *register_typeArray = self.downSelectDict[@"register_type"];//户口性质
    NSArray *nationArray = self.downSelectDict[@"nation_select"];
    NSArray *sexArray = self.downSelectDict[@"children_gender"];
    NSArray *physical_conditionArray = self.downSelectDict[@"physical_condition"];//身体状况duoge
    NSArray *doubtful_disability_typeArray = self.downSelectDict[@"doubtful_disability_type"];//疑似残疾类型
    NSArray *disability_selectArray = self.downSelectDict[@"disability_select"];//残疾类别
    NSArray *disability_levelArray = self.downSelectDict[@"disability_level"];//残疾等级
    NSArray *serious_illness_typeArray = self.downSelectDict[@"serious_illness_type"];//大病病种
    NSArray *report_typeArray = self.downSelectDict[@"report_type"];//上报类型
    NSArray *poor_family_typeArray = self.downSelectDict[@"poor_family_type"];//家庭贫困
    NSArray *custody_dilemmaArray = self.downSelectDict[@"custody_dilemma"];//监护困境
    NSArray *custody_nobodyArray = self.downSelectDict[@"custody_nobody"];//事实无人抚养
    NSArray *schoolingArray = self.downSelectDict[@"schooling"];//就学情况
    NSArray *lodingArray = self.downSelectDict[@"loding"];//是否学校寄宿``````
    NSArray *other_specialArray = self.downSelectDict[@"other_special"];//其他特殊情况``````
    NSArray *social_assistanceArray = self.downSelectDict[@"social_assistance"];//社会福利，救助，扶贫落实情况`````
    NSArray *encroachArray = self.downSelectDict[@"encroach"];//有无发生遭受监护人侵害的情形````````
    NSArray *source_incomeArray = self.downSelectDict[@"source_income"];//父亲。母亲家庭经济来源duoge``````
    NSArray *other_special_adultArray = self.downSelectDict[@"other_special_adult"];//父亲。母亲其他特殊情况duoge```````
    
    NSDictionary *childDict = self.displayDataDict[@"childobj"];
    if (![childDict isKindOfClass:[NSNull class]] && childDict && childDict.count > 0) {
        self.nameTF.text = [ValidateUtils validateNull:childDict[@"name"]];//姓名(Y)
        NSString *register_typeString = @"";
        for (NSDictionary *dict in register_typeArray) {
            if ([dict[@"id"] isEqualToString:[ValidateUtils validateNull:childDict[@"registerType"]]]) {
                register_typeString = [ValidateUtils validateNull:dict[@"value"]];
            }
        }
        self.registerTypeTF.text = register_typeString;//self.registerTypeTFArray[[self validateSelect:childDict[@"registerType"]]==0?0:[self validateSelect:childDict[@"registerType"]]-1];//户口性质(Y)
        NSString *nationString = @"";
        for (NSDictionary *dict in nationArray) {
            if ([dict[@"id"] isEqualToString:[ValidateUtils validateNull:childDict[@"nation"]]]) {
                nationString = [ValidateUtils validateNull:dict[@"value"]];
            }
        }
        self.nationTF.text = nationString;//self.nationTFArray[[self validateSelect:childDict[@"nation"]]==0?0:[self validateSelect:childDict[@"nation"]]];//民族(Y)
        NSString *sexString = @"";
        for (NSDictionary *dict in sexArray) {
            if ([dict[@"id"] isEqualToString:[ValidateUtils validateNull:childDict[@"gender"]]]) {
                sexString = [ValidateUtils validateNull:dict[@"value"]];
            }
        }
        self.sexTF.text = sexString;//self.sexTFArray[[self validateSelect:childDict[@"gender"]]==0?0:[self validateSelect:childDict[@"gender"]]-1];//性别(Y)
        self.personalIDCardTF.text = [ValidateUtils validateNull:childDict[@"idcard"]];//身份证号(Y)
        self.birthdayTF.text = [ValidateUtils validateNull:childDict[@"bridthday"]];//[self timeStampToDate:childDict[@"bridthday"]];//生日(Y)
        self.regionCodeTF.text = [ValidateUtils validateNull:childDict[@"regionName"]];
        self.regionCodeTF.placeholder = [ValidateUtils validateNull:childDict[@"regionCode"]];
        self.addressRegisterTV.text = [ValidateUtils validateNull:childDict[@"addressRegister"]];//户籍地详细地址(Y)
        self.addressTV.text = [ValidateUtils validateNull:childDict[@"address"]];//现居住地(Y)
        if (![[ValidateUtils validateNull:childDict[@"physicalCondition"]] isEqualToString:@""]) {
            NSMutableString *physicalConditionStringM = [[NSMutableString alloc] initWithString:@""];
            NSArray *physicalConditionStringArray = [[ValidateUtils validateNull:childDict[@"physicalCondition"]] componentsSeparatedByString:@","];
            for (NSString *physicalCondition in physicalConditionStringArray) {
                [physicalConditionStringM appendFormat:@"%@ ",[self getValueById:physicalCondition fromArray:physical_conditionArray]];
            }
            self.physicalConditionTF.text = [physicalConditionStringM substringToIndex:physicalConditionStringM.length-1];//身体状况
            if ([self.physicalConditionTF.text rangeOfString:@"残疾"].length > 0) {
                if (![self.childContentArrayM containsObject:string1_13]) {
                    NSInteger index = [self.childContentArrayM indexOfObject:string1_10];
                    if (![self.childContentArrayM containsObject:string1_11]) {
                        [self.childContentArrayM insertObjects:@[string1_11] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
                    }
                    NSInteger index2 = [self.childContentArrayM indexOfObject:string1_11];
                    [self.childContentArrayM insertObjects:@[string1_12,string1_13] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index2+1, 2)]];
                }
            } else {
                [self.childContentArrayM removeObjectsInArray:@[string1_11,string1_12,string1_13]];
            }
            if ([self.physicalConditionTF.text rangeOfString:@"患病"].length > 0) {
                if (![self.childContentArrayM containsObject:string1_14]) {
                    NSInteger index = 0;
                    if ([self.childContentArrayM containsObject:string1_13]) {
                        index = [self.childContentArrayM indexOfObject:string1_13];
                    } else {
                        index = [self.childContentArrayM indexOfObject:string1_10];
                    }
                    [self.childContentArrayM insertObjects:@[string1_14] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
                }
            } else {
                [self.childContentArrayM removeObjectsInArray:@[string1_14]];
            }
        }
        if (![[ValidateUtils validateNull:childDict[@"doubtfulDisabilityType"]] isEqualToString:@""]) {
            NSMutableString *doubtful_disability_typeStringM = [[NSMutableString alloc] initWithString:@""];
            NSArray *doubtful_disability_typeStringArray = [[ValidateUtils validateNull:childDict[@"doubtfulDisabilityType"]] componentsSeparatedByString:@","];
            for (NSString *doubtful_disability_typeId in doubtful_disability_typeStringArray) {
                [doubtful_disability_typeStringM appendFormat:@"%@ ",[self getValueById:doubtful_disability_typeId fromArray:doubtful_disability_typeArray]];
            }
            self.doubtfulDisabilityTypeTF.text = [doubtful_disability_typeStringM substringToIndex:doubtful_disability_typeStringM.length-1];//疑似残疾类型
            [self.childContentArrayM removeObjectsInArray:@[string1_12,string1_13]];
        }
        if (![[ValidateUtils validateNull:childDict[@"disabilityType"]] isEqualToString:@""]) {
            NSMutableString *disability_selectStringM = [[NSMutableString alloc] initWithString:@""];
            NSArray *disability_selectStringArray = [[ValidateUtils validateNull:childDict[@"disabilityType"]] componentsSeparatedByString:@","];
            for (NSString *disability_selectId in disability_selectStringArray) {
                [disability_selectStringM appendFormat:@"%@ ",[self getValueById:disability_selectId fromArray:disability_selectArray]];
            }
            self.disabilitySelectTF.text = [disability_selectStringM substringToIndex:disability_selectStringM.length-1];//残疾类型
            [self.childContentArrayM removeObjectsInArray:@[string1_11]];
        }
        if (![[ValidateUtils validateNull:childDict[@"disabilityLevel"]] isEqualToString:@""]) {
            NSMutableString *disability_levelStringM = [[NSMutableString alloc] initWithString:@""];
            NSArray *disability_levelStringArray = [[ValidateUtils validateNull:childDict[@"disabilityLevel"]] componentsSeparatedByString:@","];
            for (NSString *disability_levelId in disability_levelStringArray) {
                [disability_levelStringM appendFormat:@"%@ ",[self getValueById:disability_levelId fromArray:disability_levelArray]];
            }
            self.disabilityLevelTF.text = [disability_levelStringM substringToIndex:disability_levelStringM.length-1];//残疾等级
        }
        if (![[ValidateUtils validateNull:childDict[@"seriousIllnessType"]] isEqualToString:@""]) {
            NSMutableString *serious_illness_typeStringM = [[NSMutableString alloc] initWithString:@""];
            NSArray *serious_illness_typeStringArray = [[ValidateUtils validateNull:childDict[@"seriousIllnessType"]] componentsSeparatedByString:@","];
            for (NSString *serious_illness_typeId in serious_illness_typeStringArray) {
                [serious_illness_typeStringM appendFormat:@"%@ ",[self getValueById:serious_illness_typeId fromArray:serious_illness_typeArray]];
            }
            self.seriousIllnessTypeTF.text = [serious_illness_typeStringM substringToIndex:serious_illness_typeStringM.length-1];//大病病种
        }
        if (![[ValidateUtils validateNull:childDict[@"reportType"]] isEqualToString:@""]) {
            NSMutableString *report_typeStringM = [[NSMutableString alloc] initWithString:@""];
            NSArray *report_typeStringArray = [[ValidateUtils validateNull:childDict[@"reportType"]] componentsSeparatedByString:@","];
            for (NSString *report_typeId in report_typeStringArray) {
                [report_typeStringM appendFormat:@"%@ ",[self getValueById:report_typeId fromArray:report_typeArray]];
            }
            self.reportTypeTF.text = [report_typeStringM substringToIndex:report_typeStringM.length-1];//上报类型
            if ([self.reportTypeTF.text rangeOfString:@"困境"].length > 0) {
                if (![self.childContentArrayM containsObject:string1_18]) {
                    NSInteger index = [self.childContentArrayM indexOfObject:string1_15];
                    [self.childContentArrayM insertObjects:@[string1_16,string1_17,string1_18] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 3)]];
                }
            } else {
                [self.childContentArrayM removeObjectsInArray:@[string1_16,string1_17,string1_18]];
            }
        }
        NSMutableString *poor_family_typeStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *poor_family_typeStringArray = [[ValidateUtils validateNull:childDict[@"poorFamilyType"]] componentsSeparatedByString:@","];
        for (NSString *poorFamilyType in poor_family_typeStringArray) {
            [poor_family_typeStringM appendFormat:@"%@ ",[self getValueById:poorFamilyType fromArray:poor_family_typeArray]];
        }
        self.poorFamilyTypeTF.text = [poor_family_typeStringM substringToIndex:poor_family_typeStringM.length-1];//家庭贫困(Y)
        NSMutableString *custody_dilemmaStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *custody_dilemmaStringArray = [[ValidateUtils validateNull:childDict[@"custodyDilemma"]] componentsSeparatedByString:@","];
        for (NSString *custodyDilemma in custody_dilemmaStringArray) {
            [custody_dilemmaStringM appendFormat:@"%@ ",[self getValueById:custodyDilemma fromArray:custody_dilemmaArray]];
        }
        self.custodyDilemmaTF.text = [custody_dilemmaStringM substringToIndex:custody_dilemmaStringM.length-1];//监护困境
        NSString *custody_nobodyString = @"";
        for (NSDictionary *dict in custody_nobodyArray) {
            if ([dict[@"id"] isEqualToString:[ValidateUtils validateNull:childDict[@"custodyNobody"]]]) {
                custody_nobodyString = [ValidateUtils validateNull:dict[@"value"]];
            }
        }
        self.custodyNobodyTF.text = custody_nobodyString;//事实无人抚养(Y)
        NSString *schoolingString = @"";
        for (NSDictionary *dict in schoolingArray) {
            if ([dict[@"id"] isEqualToString:[ValidateUtils validateNull:childDict[@"schooling"]]]) {
                schoolingString = [ValidateUtils validateNull:dict[@"value"]];
            }
        }
        self.schoolingTF.text = schoolingString;//就学情况(Y)
        NSString *lodingString = @"";
        for (NSDictionary *dict in lodingArray) {
            if ([dict[@"id"] isEqualToString:[ValidateUtils validateNull:childDict[@"loding"]]]) {
                lodingString = [ValidateUtils validateNull:dict[@"value"]];
            }
        }
        self.lodingTF.text = lodingString;//是否寄宿
        NSMutableString *other_specialStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *other_specialStringArray = [[ValidateUtils validateNull:childDict[@"otherSpecial"]] componentsSeparatedByString:@","];
        for (NSString *otherSpecialId in other_specialStringArray) {
            [other_specialStringM appendFormat:@"%@ ",[self getValueById:otherSpecialId fromArray:other_specialArray]];
        }
        self.otherSpecialTF.text = [other_specialStringM substringToIndex:other_specialStringM.length-1];//其他特殊情况
        if ([self.otherSpecialTF.text rangeOfString:@"其他"].length > 0) {
            if (![self.childContentArrayM containsObject:string1_22]) {
                NSInteger index = [self.childContentArrayM indexOfObject:string1_21];
                [self.childContentArrayM insertObjects:@[string1_22] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
            }
        } else {
            [self.childContentArrayM removeObjectsInArray:@[string1_22]];
        }
        self.otherSpecialOtherTV.text = [ValidateUtils validateNull:childDict[@"otherSpecialContent"]];
        NSMutableString *osocial_assistanceStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *osocial_assistanceStringArray = [[ValidateUtils validateNull:childDict[@"socialAssistance"]] componentsSeparatedByString:@","];
        for (NSString *socialAssistanceId in osocial_assistanceStringArray) {
            [osocial_assistanceStringM appendFormat:@"%@ ",[self getValueById:socialAssistanceId fromArray:social_assistanceArray]];
        }
        self.socialAssistanceTF.text = [osocial_assistanceStringM substringToIndex:osocial_assistanceStringM.length-1];//社会福利、救助、扶贫落实情况
        if ([self.socialAssistanceTF.text rangeOfString:@"其他"].length > 0) {
            if (![self.childContentArrayM containsObject:string1_24]) {
                NSInteger index = [self.childContentArrayM indexOfObject:string1_23];
                [self.childContentArrayM insertObjects:@[string1_24] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
            }
        } else {
            [self.childContentArrayM removeObjectsInArray:@[string1_24]];
        }
        self.socialAssistanceOtherTV.text = [ValidateUtils validateNull:childDict[@"socialAssistanceContent"]];
        NSMutableString *encroachStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *encroachStringArray = [[ValidateUtils validateNull:childDict[@"encroach"]] componentsSeparatedByString:@","];
        for (NSString *encroachId in encroachStringArray) {
            [encroachStringM appendFormat:@"%@ ",[self getValueById:encroachId fromArray:encroachArray]];
        }
        self.encroachTF.text = [encroachStringM substringToIndex:encroachStringM.length-1];//有无发生遭受监护人侵害的情形
        if ([self.encroachTF.text rangeOfString:@"其他"].length > 0) {
            if (![self.childContentArrayM containsObject:string1_26]) {
                NSInteger index = [self.childContentArrayM indexOfObject:string1_25];
                [self.childContentArrayM insertObjects:@[string1_26] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
            }
        } else {
            [self.childContentArrayM removeObjectsInArray:@[string1_26]];
        }
        self.encroachOtherTV.text = [ValidateUtils validateNull:childDict[@"encroachContent"]];
    }
    
    NSDictionary *familyDict = self.displayDataDict[@"familyobj"];
    if (![familyDict isKindOfClass:[NSNull class]] && familyDict && familyDict.count > 0) {
        self.grandfatherNameTF.text = [ValidateUtils validateNull:familyDict[@"grandfatherName"]];//祖父姓名(Y)
        self.grandfatherBirthdayTF.text = [self timeStampToDate:familyDict[@"grandfatherBirthday"]];//祖父生日(Y)
        self.grandmotherNameTF.text = [ValidateUtils validateNull:familyDict[@"grandmotherName"]];//祖母姓名(Y)
        self.grandmotherBirthdayTF.text = [self timeStampToDate:familyDict[@"grandmotherBirthday"]];//祖母生日(Y)
        self.fatherNameTF.text = [ValidateUtils validateNull:familyDict[@"fatherName"]];//父亲姓名(Y)
        self.fatherBirthdayTF.text = [self timeStampToDate:familyDict[@"fatherBirthday"]];//父亲生日(Y)
        self.fatherTelephoneTF.text = [ValidateUtils validateNull:familyDict[@"fatherTelephone"]];//父亲电话(Y)
        self.fatherIdcardTF.text = [ValidateUtils validateNull:familyDict[@"fatherIdcard"]];//父亲身份证号(Y)
        self.fatherRegisterRegionNameTF.text = [ValidateUtils validateNull:familyDict[@"fatherRegisterRegionName"]];//父亲户籍所在地(Y)
        self.fatherRegisterRegionNameTF.placeholder = [ValidateUtils validateNull:familyDict[@"fatherRegisterRegion"]];
        self.fatherRegisterAddrTV.text = [ValidateUtils validateNull:familyDict[@"fatherRegisterAddr"]];//父亲户籍所在地址(Y)
        self.fatherWorkplaceNameTF.text = [ValidateUtils validateNull:familyDict[@"fatherWorkplaceName"]];//父亲务工地
        self.fatherWorkplaceNameTF.placeholder = [ValidateUtils validateNull:familyDict[@"fatherWorkplace"]];//
        self.fatherWorkerAddrTV.text = [ValidateUtils validateNull:familyDict[@"fatherWorkerAddr"]];//父亲务工详细地址
        
        if (![[ValidateUtils validateNull:familyDict[@"fatherHealth"]] isEqualToString:@""]) {
            NSMutableString *physicalConditionStringM = [[NSMutableString alloc] initWithString:@""];
            NSArray *physicalConditionStringArray = [[ValidateUtils validateNull:familyDict[@"fatherHealth"]] componentsSeparatedByString:@","];
            for (NSString *physicalCondition in physicalConditionStringArray) {
                [physicalConditionStringM appendFormat:@"%@ ",[self getValueById:physicalCondition fromArray:physical_conditionArray]];
            }
            self.fatherHealthTF.text = [physicalConditionStringM substringToIndex:physicalConditionStringM.length-1];//身体状况
            if ([self.fatherHealthTF.text rangeOfString:@"残疾"].length > 0) {
                if (![self.familyContentArrayM containsObject:string2_15]) {
                    NSInteger index = [self.familyContentArrayM indexOfObject:string2_13];
                    [self.familyContentArrayM insertObjects:@[string2_14,string2_15] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 2)]];
                }
            } else {
                [self.familyContentArrayM removeObjectsInArray:@[string2_14,string2_15]];
            }
            if ([self.fatherHealthTF.text rangeOfString:@"患病"].length > 0) {
                if (![self.familyContentArrayM containsObject:string2_16]) {
                    NSInteger index = 0;
                    if ([self.familyContentArrayM containsObject:string2_15]) {
                        index = [self.familyContentArrayM indexOfObject:string2_15];
                    } else {
                        index = [self.familyContentArrayM indexOfObject:string2_13];
                    }
                    [self.familyContentArrayM insertObjects:@[string2_16] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
                }
            } else {
                [self.familyContentArrayM removeObjectsInArray:@[string2_16]];
            }
        }//父亲健康情况
        NSMutableString *fatherdisability_selectStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *fatherdisability_selectStringArray = [[ValidateUtils validateNull:familyDict[@"fatherDisType"]] componentsSeparatedByString:@","];
        for (NSString *fatherDisTypeId in fatherdisability_selectStringArray) {
            [fatherdisability_selectStringM appendFormat:@"%@ ",[self getValueById:fatherDisTypeId fromArray:disability_selectArray]];
        }
        self.fatherDisTypeTF.text = [fatherdisability_selectStringM substringToIndex:fatherdisability_selectStringM.length-1];//父亲残疾类别
        NSString *fatherdisability_levelString = @"";
        for (NSDictionary *dict in disability_levelArray) {
            if ([dict[@"id"] isEqualToString:[ValidateUtils validateNull:familyDict[@"fatherDisLevel"]]]) {
                fatherdisability_levelString = [ValidateUtils validateNull:dict[@"value"]];
            }
        }
        self.fatherDisLevelTF.text = fatherdisability_levelString;//父亲残疾等级
        NSMutableString *father_serious_illnessTypeStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *father_serious_illnessTypeStringArray = [[ValidateUtils validateNull:familyDict[@"fatherSeriousIllnessType"]] componentsSeparatedByString:@","];
        for (NSString *fatherSeriousIllnessTypeId in father_serious_illnessTypeStringArray) {
            [father_serious_illnessTypeStringM appendFormat:@"%@ ",[self getValueById:fatherSeriousIllnessTypeId fromArray:serious_illness_typeArray]];
        }
        self.fatherSeriousIllnessTypeTF.text = [father_serious_illnessTypeStringM substringToIndex:father_serious_illnessTypeStringM.length-1];//父亲大病病种
        NSMutableString *father_family_shipStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *father_family_shipStringArray = [[ValidateUtils validateNull:familyDict[@"fatherFamilyship"]] componentsSeparatedByString:@","];
        for (NSString *fatherFamilyshipId in father_family_shipStringArray) {
            [father_family_shipStringM appendFormat:@"%@ ",[self getValueById:fatherFamilyshipId fromArray:source_incomeArray]];
        }
        self.fatherFamilyshipTF.text = [father_family_shipStringM substringToIndex:father_family_shipStringM.length-1];//父亲家庭经济来源
        if ([self.fatherFamilyshipTF.text rangeOfString:@"其他"].length > 0) {//18.20.34.36
            if (![self.familyContentArrayM containsObject:string2_18]) {
                NSInteger index = [self.familyContentArrayM indexOfObject:string2_17];
                [self.familyContentArrayM insertObjects:@[string2_18] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
            }
        } else {
            [self.familyContentArrayM removeObjectsInArray:@[string2_18]];
        }
        self.fatherFamilyshipOtherTV.text = [ValidateUtils validateNull:familyDict[@"fatherShipContent"]];
        
        NSMutableString *father_other_special_adultStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *father_other_special_adultStringArray = [[ValidateUtils validateNull:familyDict[@"fatherOtherSpecial"]] componentsSeparatedByString:@","];
        for (NSString *fatherOtherSpecialId in father_other_special_adultStringArray) {
            [father_other_special_adultStringM appendFormat:@"%@ ",[self getValueById:fatherOtherSpecialId fromArray:other_special_adultArray]];
        }
        self.fatherOtherSpecialTF.text = [father_other_special_adultStringM substringToIndex:father_other_special_adultStringM.length-1];//父亲其他特殊情况
        if ([self.fatherOtherSpecialTF.text rangeOfString:@"其他"].length > 0) {//18.20.34.36
            if (![self.familyContentArrayM containsObject:string2_20]) {
                NSInteger index = [self.familyContentArrayM indexOfObject:string2_19];
                [self.familyContentArrayM insertObjects:@[string2_20] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
            }
        } else {
            [self.familyContentArrayM removeObjectsInArray:@[string2_20]];
        }
        self.fatherOtherSpecialOtherTV.text = [ValidateUtils validateNull:familyDict[@"fatherOtherContent"]];
        
        
        self.motherNameTF.text = [ValidateUtils validateNull:familyDict[@"motherName"]];//母亲姓名(Y)
        self.motherBirthdayTF.text = [self timeStampToDate:familyDict[@"motherBirthday"]];//母亲生日(Y)
        self.motherTelephoneTF.text = [ValidateUtils validateNull:familyDict[@"motherTelephone"]];//母亲电话(Y)
        self.motherIdcardTF.text = [ValidateUtils validateNull:familyDict[@"motherIdcard"]];//母亲身份证号(Y)
        self.motherRegisterRegionNameTF.text = [ValidateUtils validateNull:familyDict[@"motherRegisterRegionName"]];//母亲户籍所在地(Y)
        self.motherRegisterRegionNameTF.placeholder = [ValidateUtils validateNull:familyDict[@"motherRegisterRegion"]];
        self.motherRegisterAddrTV.text = [ValidateUtils validateNull:familyDict[@"motherRegisterAddr"]];//母亲户籍所在地址(Y)
        self.motherWorkplaceNameTF.text = [ValidateUtils validateNull:familyDict[@"motherWorkplaceName"]];//母亲务工地(Y)
        self.motherWorkplaceNameTF.placeholder = [ValidateUtils validateNull:familyDict[@"motherWorkplace"]];
        self.motherWorkerAddrTV.text = [ValidateUtils validateNull:familyDict[@"motherWorkerAddr"]];//母亲务工详细地址(Y)
        
        if (![[ValidateUtils validateNull:familyDict[@"motherHealth"]] isEqualToString:@""]) {
            NSMutableString *physicalConditionStringM = [[NSMutableString alloc] initWithString:@""];
            NSArray *physicalConditionStringArray = [[ValidateUtils validateNull:familyDict[@"motherHealth"]] componentsSeparatedByString:@","];
            for (NSString *physicalCondition in physicalConditionStringArray) {
                [physicalConditionStringM appendFormat:@"%@ ",[self getValueById:physicalCondition fromArray:physical_conditionArray]];
            }
            self.motherHealthTF.text = [physicalConditionStringM substringToIndex:physicalConditionStringM.length-1];//身体状况
            if ([self.motherHealthTF.text rangeOfString:@"残疾"].length > 0) {
                if (![self.familyContentArrayM containsObject:string2_31]) {
                    NSInteger index = [self.familyContentArrayM indexOfObject:string2_29];
                    [self.familyContentArrayM insertObjects:@[string2_30,string2_31] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 2)]];
                }
            } else {
                [self.familyContentArrayM removeObjectsInArray:@[string2_30,string2_31]];
            }
            if ([self.motherHealthTF.text rangeOfString:@"患病"].length > 0) {
                if (![self.familyContentArrayM containsObject:string2_32]) {
                    NSInteger index = 0;
                    if ([self.familyContentArrayM containsObject:string2_31]) {
                        index = [self.familyContentArrayM indexOfObject:string2_31];
                    } else {
                        index = [self.familyContentArrayM indexOfObject:string2_29];
                    }
                    [self.familyContentArrayM insertObjects:@[string2_32] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
                }
            } else {
                [self.familyContentArrayM removeObjectsInArray:@[string2_32]];
            }
        }
        
        NSMutableString *motherdisability_selectStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *motherdisability_selectStringArray = [[ValidateUtils validateNull:familyDict[@"motherDisType"]] componentsSeparatedByString:@","];
        for (NSString *motherDisTypeId in motherdisability_selectStringArray) {
            [motherdisability_selectStringM appendFormat:@"%@ ",[self getValueById:motherDisTypeId fromArray:disability_selectArray]];
        }
        self.motherDisTypeTF.text = [motherdisability_selectStringM substringToIndex:motherdisability_selectStringM.length-1];//母亲残疾类别
        NSString *Mdisability_levelString = @"";
        for (NSDictionary *dict in disability_levelArray) {
            if ([dict[@"id"] isEqualToString:[ValidateUtils validateNull:familyDict[@"motherDisLevel"]]]) {
                Mdisability_levelString = [ValidateUtils validateNull:dict[@"value"]];
            }
        }
        self.motherDisLevelTF.text = Mdisability_levelString;//母亲残疾等级
        NSMutableString *mother_serious_illnessTypeStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *mother_serious_illnessTypeStringArray = [[ValidateUtils validateNull:familyDict[@"motherSeriousIllnessType"]] componentsSeparatedByString:@","];
        for (NSString *motherSeriousIllnessTypeId in mother_serious_illnessTypeStringArray) {
            [mother_serious_illnessTypeStringM appendFormat:@"%@ ",[self getValueById:motherSeriousIllnessTypeId fromArray:serious_illness_typeArray]];
        }
        self.motherSeriousIllnessTypeTF.text = [mother_serious_illnessTypeStringM substringToIndex:mother_serious_illnessTypeStringM.length-1];//母亲大病病种
        NSMutableString *mother_family_shipStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *mother_family_shipStringArray = [[ValidateUtils validateNull:familyDict[@"motherFamilyship"]] componentsSeparatedByString:@","];
        for (NSString *motherFamilyshipId in mother_family_shipStringArray) {
            [mother_family_shipStringM appendFormat:@"%@ ",[self getValueById:motherFamilyshipId fromArray:source_incomeArray]];
        }
        self.motherFamilyshipTF.text = [mother_family_shipStringM substringToIndex:mother_family_shipStringM.length-1];//母亲家庭经济来源
        if ([self.motherFamilyshipTF.text rangeOfString:@"其他"].length > 0) {//18.20.34.36
            if (![self.familyContentArrayM containsObject:string2_34]) {
                NSInteger index = [self.familyContentArrayM indexOfObject:string2_33];
                [self.familyContentArrayM insertObjects:@[string2_34] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
            }
        } else {
            [self.familyContentArrayM removeObjectsInArray:@[string2_34]];
        }
        self.motherFamilyshipOtherTV.text = [ValidateUtils validateNull:familyDict[@"motherShipContent"]];
        NSMutableString *mother_other_special_adultStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *mother_other_special_adultStringArray = [[ValidateUtils validateNull:familyDict[@"motherOtherSpecial"]] componentsSeparatedByString:@","];
        for (NSString *motherOtherSpecialId in mother_other_special_adultStringArray) {
            [mother_other_special_adultStringM appendFormat:@"%@ ",[self getValueById:motherOtherSpecialId fromArray:other_special_adultArray]];
        }
        self.motherOtherSpecialTF.text = [mother_other_special_adultStringM substringToIndex:mother_other_special_adultStringM.length-1];//母亲其他特殊情况
        if ([self.motherOtherSpecialTF.text rangeOfString:@"其他"].length > 0) {//18.20.34.36
            if (![self.familyContentArrayM containsObject:string2_36]) {
                NSInteger index = [self.familyContentArrayM indexOfObject:string2_35];
                [self.familyContentArrayM insertObjects:@[string2_36] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
            }
        } else {
            [self.familyContentArrayM removeObjectsInArray:@[string2_36]];
        }
        self.motherOtherSpecialOtherTV.text = [ValidateUtils validateNull:familyDict[@"motherOtherContent"]];
    }
    
    
    NSArray *all_outArray = self.downSelectDict[@"all_out"];//双亲是否同时外出
    NSArray *one_outArray = self.downSelectDict[@"one_out"];//双亲是否一方外出（另一方无监护能力）
    NSArray *who_cantArray = self.downSelectDict[@"who_cant"];//父母哪一方无监护能力
    NSArray *delegationArray = self.downSelectDict[@"delegation"];//双亲是否委托其他监护人
    NSArray *custodian_shipArray = self.downSelectDict[@"custodian_ship"];//与儿童的关系
    NSArray *guardian_typeArray = self.downSelectDict[@"guardian_type"];//监护类型
    NSArray *guardianphysical_conditionArray = self.downSelectDict[@"physical_condition"];//健康情况
    NSArray *guardiandisability_selectArray = self.downSelectDict[@"disability_select"];//残疾类别
    NSArray *guardiandisability_levelArray = self.downSelectDict[@"disability_level"];//残疾等级
    NSArray *gserious_illness_typeArray = self.downSelectDict[@"serious_illness_type"];//大病病种
    NSArray *guardianother_specialArray = self.downSelectDict[@"other_special"];//其他特殊情况
    NSArray *guardian_scoreArray = self.downSelectDict[@"guardian_score"];//监护情况评估
    NSArray *salvation_conditionArray = self.downSelectDict[@"salvation_condition"];//救助帮扶情况```````
    NSArray *institutional_natureArray = self.downSelectDict[@"institutional_nature"];//机构性质
    NSArray *help_proposalArray = self.downSelectDict[@"help_proposal"];//帮扶建议
    NSDictionary *custodyDict = self.displayDataDict[@"custodyobj"];
    if (![custodyDict isKindOfClass:[NSNull class]] && custodyDict && custodyDict.count > 0) {
        NSString *all_outString = @"";
        for (NSDictionary *dict in all_outArray) {
            if ([dict[@"id"] isEqualToString:[ValidateUtils validateNull:custodyDict[@"allout"]]]) {
                all_outString = [ValidateUtils validateNull:dict[@"value"]];
            }
        }
        self.alloutTF.text = all_outString;//双亲是否同时外出(Y)
        if ([all_outString isEqualToString:@"是"]) {
            if (![self.custodyContentArrayM containsObject:string3_3]) {
                [self.custodyContentArrayM removeObjectsInArray:@[string3_2,string3_3]];
            }
        } else {
            if ([self.oneoutTF.text isEqualToString:@"是"]) {
                if (![self.custodyContentArrayM containsObject:string3_3]) {
                    [self.custodyContentArrayM insertObjects:@[string3_2,string3_3] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(1, 2)]];
                }
            } else {
                if (![self.custodyContentArrayM containsObject:string3_2]) {
                    [self.custodyContentArrayM insertObjects:@[string3_2] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(1, 1)]];
                }
            }
        }
        NSString *one_outString = @"";
        for (NSDictionary *dict in one_outArray) {
            if ([dict[@"id"] isEqualToString:[ValidateUtils validateNull:custodyDict[@"oneout"]]]) {
                one_outString = [ValidateUtils validateNull:dict[@"value"]];
            }
        }
        self.oneoutTF.text = one_outString;//双亲是否一方外出（另一方无监护能力）(Y)
        if ([one_outString isEqualToString:@"是"]) {
            if (![self.custodyContentArrayM containsObject:string3_3]) {
                [self.custodyContentArrayM insertObjects:@[string3_3] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(2, 1)]];
            }
        } else {
            [self.custodyContentArrayM removeObjectsInArray:@[string3_3]];
        }
        NSString *who_cantString = @"";
        for (NSDictionary *dict in who_cantArray) {
            if ([dict[@"id"] isEqualToString:[ValidateUtils validateNull:custodyDict[@"whocant"]]]) {
                who_cantString = [ValidateUtils validateNull:dict[@"value"]];
            }
        }
        self.whoCantTF.text = who_cantString;//父母哪一方无监护能力
        NSString *delegationString = @"";
        for (NSDictionary *dict in delegationArray) {
            if ([dict[@"id"] isEqualToString:[ValidateUtils validateNull:custodyDict[@"delegation"]]]) {
                delegationString = [ValidateUtils validateNull:dict[@"value"]];
            }
        }
        self.delegationTF.text = delegationString;//是否委托其他监护人(Y)
        if ([delegationString isEqualToString:@"是"]) {
            if (![self.custodyContentArrayM containsObject:string3_14]) {
                NSInteger index = [self.custodyContentArrayM indexOfObject:string3_4];
                [self.custodyContentArrayM insertObjects:@[string3_5,string3_6,string3_7,string3_8,string3_9,string3_10,string3_11,string3_14] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 8)]];
                NSArray *selectObjects = [self.guardianPhysicalConditionTF.text componentsSeparatedByString:@" "];
                [self rearrangeTableViewSource:self.custodyContentArrayM withCanJiOrHuanBingArray:selectObjects forTextField:self.guardianPhysicalConditionTF];
            }
        } else {
            [self.custodyContentArrayM removeObjectsInArray:@[string3_5,string3_6,string3_7,string3_8,string3_9,string3_10,string3_11,string3_12,string3_13,string3_23,string3_14]];
        }
        self.guardianNameTF.text = [ValidateUtils validateNull:custodyDict[@"name"]];//监护人姓名
        self.guardianTelephoneTF.text = [ValidateUtils validateNull:custodyDict[@"telephone"]];//监护人电话
        self.guardianIdcardTF.text = [ValidateUtils validateNull:custodyDict[@"idcard"]];//监护人身份证号
        self.guardianAddressTV.text = [ValidateUtils validateNull:custodyDict[@"address"]];//居住地址
        NSString *custodian_shipString = @"";
        for (NSDictionary *dict in custodian_shipArray) {
            if ([dict[@"id"] isEqualToString:[ValidateUtils validateNull:custodyDict[@"relations"]]]) {
                custodian_shipString = [ValidateUtils validateNull:dict[@"value"]];
            }
        }
        self.guardianShipTF.text = custodian_shipString;//与儿童的关系
        NSString *guardian_typeString = @"";
        for (NSDictionary *dict in guardian_typeArray) {
            if ([dict[@"id"] isEqualToString:[ValidateUtils validateNull:custodyDict[@"guardianType"]]]) {
                guardian_typeString = [ValidateUtils validateNull:dict[@"value"]];
            }
        }
        self.guardianTypeTF.text = guardian_typeString;//监护类型
        
        if (![[ValidateUtils validateNull:custodyDict[@"health"]] isEqualToString:@""]) {
            NSMutableString *physical_conditionStringM = [[NSMutableString alloc] initWithString:@""];
            NSArray *physical_conditionStringArray = [[ValidateUtils validateNull:custodyDict[@"health"]] componentsSeparatedByString:@","];
            for (NSString *guardianphysical_conditionId in physical_conditionStringArray) {
                [physical_conditionStringM appendFormat:@"%@ ",[self getValueById:guardianphysical_conditionId fromArray:guardianphysical_conditionArray]];
            }
            self.guardianPhysicalConditionTF.text = [physical_conditionStringM substringToIndex:physical_conditionStringM.length-1];//健康情况
            if ([self.guardianPhysicalConditionTF.text rangeOfString:@"残疾"].length > 0) {
                if (![self.custodyContentArrayM containsObject:string3_13]) {
                    NSInteger index = [self.custodyContentArrayM indexOfObject:string3_11];
                    [self.custodyContentArrayM insertObjects:@[string3_12,string3_13] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 2)]];
                }
            } else {
                [self.custodyContentArrayM removeObjectsInArray:@[string3_12,string3_13]];
            }
            if ([self.guardianPhysicalConditionTF.text rangeOfString:@"患病"].length > 0) {
                if (![self.custodyContentArrayM containsObject:string3_23]) {
                    NSInteger index = 0;
                    if ([self.custodyContentArrayM containsObject:string3_13]) {
                        index = [self.custodyContentArrayM indexOfObject:string3_13];
                    } else {
                        index = [self.custodyContentArrayM indexOfObject:string3_11];
                    }
                    [self.custodyContentArrayM insertObjects:@[string3_23] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
                }
            } else {
                [self.custodyContentArrayM removeObjectsInArray:@[string2_32]];
            }
        }
        
        if (![[ValidateUtils validateNull:custodyDict[@"disableType"]] isEqualToString:@""]) {
            NSMutableString *guardiandisability_selectStringM = [[NSMutableString alloc] initWithString:@""];
            NSArray *guardiandisability_selectStringArray = [[ValidateUtils validateNull:custodyDict[@"disableType"]] componentsSeparatedByString:@","];
            for (NSString *guardiandisability_selectId in guardiandisability_selectStringArray) {
                [guardiandisability_selectStringM appendFormat:@"%@ ",[self getValueById:guardiandisability_selectId fromArray:guardiandisability_selectArray]];
            }
            self.guardianDisabilitySelectTF.text = [guardiandisability_selectStringM substringToIndex:guardiandisability_selectStringM.length-1];//残疾类别
        }
        
        NSString *guardiandisability_levelString = @"";
        for (NSDictionary *dict in guardiandisability_levelArray) {
            if ([dict[@"id"] isEqualToString:[ValidateUtils validateNull:custodyDict[@"disableLevel"]]]) {
                guardiandisability_levelString = [ValidateUtils validateNull:dict[@"value"]];
            }
        }
        self.guardianDisabilityLevelTF.text = guardiandisability_levelString;//残疾等级
        
        if (![[ValidateUtils validateNull:custodyDict[@"seriousIllness"]] isEqualToString:@""]) {
            NSMutableString *gserious_illness_typeStringM = [[NSMutableString alloc] initWithString:@""];
            NSArray *gserious_illness_typeStringArray = [[ValidateUtils validateNull:custodyDict[@"seriousIllness"]] componentsSeparatedByString:@","];
            for (NSString *gserious_illness_typeId in gserious_illness_typeStringArray) {
                [gserious_illness_typeStringM appendFormat:@"%@ ",[self getValueById:gserious_illness_typeId fromArray:gserious_illness_typeArray]];
            }
            self.guardianSeriousIllnessTypeTF.text = [gserious_illness_typeStringM substringToIndex:gserious_illness_typeStringM.length-1];//大病病种
        }
        
        if (![[ValidateUtils validateNull:custodyDict[@"otherSpecial"]] isEqualToString:@""]) {
            NSMutableString *guardianother_specialStringM = [[NSMutableString alloc] initWithString:@""];
            NSArray *guardianother_specialStringArray = [[ValidateUtils validateNull:custodyDict[@"otherSpecial"]] componentsSeparatedByString:@","];
            for (NSString *guardianother_specialId in guardianother_specialStringArray) {
                [guardianother_specialStringM appendFormat:@"%@ ",[self getValueById:guardianother_specialId fromArray:guardianother_specialArray]];
            }
            self.guardianOtherSpecialTF.text = [guardianother_specialStringM substringToIndex:guardianother_specialStringM.length-1];//其他特殊情况
        }
        
        NSString *guardian_scoreString = @"";
        for (NSDictionary *dict in guardian_scoreArray) {
            if ([dict[@"id"] isEqualToString:[ValidateUtils validateNull:custodyDict[@"guardianScore"]]]) {
                guardian_scoreString = [ValidateUtils validateNull:dict[@"value"]];
            }
        }
        self.guardianScoreTF.text = guardian_scoreString;//self.guardianScoreTFArray[[self validateSelect:custodyDict[@"guardianScore"]]==0?0:[self validateSelect:custodyDict[@"guardianScore"]]-1];//监护情况评估(Y)
        
        if (![[ValidateUtils validateNull:custodyDict[@"otherSpecial"]] isEqualToString:@""]) {
            NSMutableString *salvation_conditionStringM = [[NSMutableString alloc] initWithString:@""];
            NSArray *salvation_conditionStringArray = [[ValidateUtils validateNull:custodyDict[@"otherSpecial"]] componentsSeparatedByString:@","];
            for (NSString *salvation_conditionId in salvation_conditionStringArray) {
                [salvation_conditionStringM appendFormat:@"%@ ",[self getValueById:salvation_conditionId fromArray:salvation_conditionArray]];
            }
            self.salvationConditionTF.text = [salvation_conditionStringM substringToIndex:salvation_conditionStringM.length-1];////救助帮扶情况(Y)
        }
        
        self.responsibilityTF.text = [ValidateUtils validateNull:custodyDict[@"responsibility"]];//负责人(Y)
        self.orgPhoneTF.text = [ValidateUtils validateNull:custodyDict[@"orgPhone"]];//联系电话(Y)
        self.orgTelephoneTF.text = [ValidateUtils validateNull:custodyDict[@"orgTelephone"]];//固定电话
        NSString *institutional_natureString = @"";
        for (NSDictionary *dict in institutional_natureArray) {
            if ([dict[@"id"] isEqualToString:[ValidateUtils validateNull:custodyDict[@"institutionalNature"]]]) {
                institutional_natureString = [ValidateUtils validateNull:dict[@"value"]];
            }
        }
        self.institutionalNatureTF.text = institutional_natureString;//self.institutionalNatureTFArray[[self validateSelect:custodyDict[@"institutionalNature"]]==0?0:[self validateSelect:custodyDict[@"institutionalNature"]]-1];//机构性质
        self.orgAddressTV.text = [ValidateUtils validateNull:custodyDict[@"orgAddress"]];//机构地址
        NSString *help_proposalString = @"";
        for (NSDictionary *dict in help_proposalArray) {
            if ([dict[@"id"] isEqualToString:[ValidateUtils validateNull:custodyDict[@"helpProposal"]]]) {
                help_proposalString = [ValidateUtils validateNull:dict[@"value"]];
            }
        }
        self.helpProposalTF.text = help_proposalString;//self.helpProposalTFArray[[self validateSelect:custodyDict[@"helpProposal"]]==0?0:[self validateSelect:custodyDict[@"helpProposal"]]-1];//帮扶建议
    }
    [self.tableView reloadData];
}

- (NSInteger)validateSelect:(NSString *)string {
    if (!string || [string isKindOfClass:[NSNull class]]) {
        return 0;
    } else {
        return string.integerValue;
    }
}

- (NSString *)timeStampToDate:(NSString *)timeStampString {
    // iOS 生成的时间戳是10位
    if (![[ValidateUtils validateNull:timeStampString] isEqualToString:@""] && !([ValidateUtils validateNull:timeStampString].integerValue == 0)) {
        NSTimeInterval interval    =[timeStampString doubleValue] / 1000.0;
        NSDate *date               = [NSDate dateWithTimeIntervalSince1970:interval];
        NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
        [formatter setDateFormat:@"yyyy-MM-dd"];
        return [formatter stringFromDate: date];
    }
    return @"";
}

- (void)setDisplayDataDict:(NSDictionary *)displayDataDict {
    _displayDataDict = displayDataDict;
}
// 赋值赋值赋值
#pragma mark - 提交按钮点击事件
- (void)submitButtonClick {
    if ([self.nameTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请输入姓名"];
        return;
    } else if ([self.registerTypeTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择户口性质"];
        return;
    } else if ([self.nationTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择民族"];
        return;
    } else if ([self.sexTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择性别"];
        return;
    } else if ([self.personalIDCardTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请填写身份证号"];
        return;
    } else if (![ValidateUtils validateIDCardNumber:self.personalIDCardTF.text]) {
        [MBProgressHUD showTipMessageInWindow:@"身份证号填写有误"];
        return;
    } else if ([ValidateUtils getPersonAgeFromIdCard:self.personalIDCardTF.text] > 16) {
        [MBProgressHUD showTipMessageInWindow:@"儿童年龄不可大于16周岁"];
        return;
    } else if ([self.regionCodeTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择户籍地地址"];
        return;
    } else if ([self.addressRegisterTV.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请填写户籍地详细地址"];
        return;
    } else if ([self.physicalConditionTF.text isEqualToString:@""] || [self.physicalConditionTF.text isEqualToString:@"请选择"]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择身体状况"];
        return;
    } else if ([self.physicalConditionTF.text rangeOfString:@"残疾"].length > 0 && ([self.disabilitySelectTF.text isEqualToString:@""] || [self.disabilitySelectTF.text isEqualToString:@"请选择"]) && ([self.doubtfulDisabilityTypeTF.text isEqualToString:@""] || [self.doubtfulDisabilityTypeTF.text isEqualToString:@"请选择"])) {
        [MBProgressHUD showTipMessageInWindow:@"请选择疑似残疾类型"];
        return;
    } else if ([self.physicalConditionTF.text rangeOfString:@"残疾"].length > 0 && ([self.disabilitySelectTF.text isEqualToString:@""] || [self.disabilitySelectTF.text isEqualToString:@"请选择"]) && ([self.doubtfulDisabilityTypeTF.text isEqualToString:@""] || [self.doubtfulDisabilityTypeTF.text isEqualToString:@"请选择"])) {
        [MBProgressHUD showTipMessageInWindow:@"请选择残疾类别"];
        return;
    } else if ([self.physicalConditionTF.text rangeOfString:@"残疾"].length > 0 && [self.disabilityLevelTF.text isEqualToString:@""] && ([self.doubtfulDisabilityTypeTF.text isEqualToString:@""] || [self.doubtfulDisabilityTypeTF.text isEqualToString:@"请选择"])) {
        [MBProgressHUD showTipMessageInWindow:@"请选择残疾等级"];
        return;
    } else if ([self.physicalConditionTF.text rangeOfString:@"患病"].length > 0 && ([self.seriousIllnessTypeTF.text isEqualToString:@""] || [self.seriousIllnessTypeTF.text isEqualToString:@"请选择"])) {
        [MBProgressHUD showTipMessageInWindow:@"请选择大病病种"];
        return;
    } else if ([self.reportTypeTF.text isEqualToString:@""] || [self.reportTypeTF.text isEqualToString:@"请选择"]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择上报类型"];
        return;
    } else if ([self.reportTypeTF.text rangeOfString:@"困境"].length > 0 && ([self.poorFamilyTypeTF.text isEqualToString:@""] || [self.poorFamilyTypeTF.text isEqualToString:@"请选择"])) {
        [MBProgressHUD showTipMessageInWindow:@"请选择家庭贫困"];
        return;
    } else if ([self.reportTypeTF.text rangeOfString:@"困境"].length > 0 && ([self.custodyDilemmaTF.text isEqualToString:@""] || [self.custodyDilemmaTF.text isEqualToString:@"请选择"])) {
        [MBProgressHUD showTipMessageInWindow:@"请选择监护困境"];
        return;
    } else if ([self.reportTypeTF.text rangeOfString:@"困境"].length > 0 && ([self.custodyNobodyTF.text isEqualToString:@""] || [self.custodyNobodyTF.text isEqualToString:@"请选择"])) {
        [MBProgressHUD showTipMessageInWindow:@"请选择事实无人抚养"];
        return;
    } else if ([self.schoolingTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择就学情况"];
        return;
    } else if ([self.lodingTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择是否学校寄宿"];
        return;
    } else if ([self.otherSpecialTF.text rangeOfString:@"其他"].length > 0 && [self.otherSpecialOtherTV.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请输入其他特殊情况"];
        return;
    } else if ([self.socialAssistanceTF.text rangeOfString:@"其他"].length > 0 && [self.socialAssistanceOtherTV.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请输入其他福利、救助、扶贫落实情况"];
        return;
    } else if ([self.encroachTF.text rangeOfString:@"其他"].length > 0 && [self.encroachOtherTV.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请输入其他有发生遭受监护人侵害的情形"];
        return;
    }
    
    if ([self.fatherNameTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请输入父亲姓名"];
        return;
    } else if ([self.fatherTelephoneTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请输入父亲电话"];
        return;
    } else if (![ValidateUtils validateMobile:self.fatherTelephoneTF.text]) {
        [MBProgressHUD showTipMessageInWindow:@"父亲电话号填写有误"];
        return;
    } else if ([self.fatherIdcardTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请输入父亲身份证号"];
        return;
    } else if ([self.fatherIdcardTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请输入父亲身份证号"];
        return;
    } else if ([self.fatherRegisterRegionNameTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择父亲户籍所在地"];
        return;
    } else if ([self.fatherRegisterAddrTV.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请输入父亲户籍所在地址"];
        return;
    } else if ([self.fatherWorkplaceNameTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择父亲务工地"];
        return;
    } else if ([self.fatherWorkerAddrTV.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择父亲务工详细地址"];
        return;
    } else if ([self.fatherHealthTF.text isEqualToString:@""] || [self.fatherHealthTF.text isEqualToString:@"请选择"]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择父亲健康情况"];
        return;
    } else if ([self.fatherHealthTF.text rangeOfString:@"残疾"].length > 0 && ([self.fatherDisTypeTF.text isEqualToString:@""] || [self.fatherDisTypeTF.text isEqualToString:@"请选择"])) {
        [MBProgressHUD showTipMessageInWindow:@"请选择父亲残疾类别"];
        return;
    } else if ([self.fatherHealthTF.text rangeOfString:@"残疾"].length > 0 && [self.fatherDisLevelTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择父亲残疾等级"];
        return;
    } else if ([self.fatherHealthTF.text rangeOfString:@"患病"].length > 0 && ([self.fatherSeriousIllnessTypeTF.text isEqualToString:@""] || [self.fatherSeriousIllnessTypeTF.text isEqualToString:@"请选择"])) {
        [MBProgressHUD showTipMessageInWindow:@"请选择父亲大病病种"];
        return;
    } else if ([self.motherNameTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请输入母亲姓名"];
        return;
    } else if ([self.motherBirthdayTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择母亲生日"];
        return;
    } else if ([self.motherTelephoneTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请输入母亲电话"];
        return;
    } else if (![ValidateUtils validateMobile:self.motherTelephoneTF.text]) {
        [MBProgressHUD showTipMessageInWindow:@"母亲电话号填写有误"];
        return;
    } else if ([self.motherIdcardTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请输入母亲身份证号"];
        return;
    } else if (![ValidateUtils validateIDCardNumber:self.motherIdcardTF.text]) {
        [MBProgressHUD showTipMessageInWindow:@"母亲身份证号填写有误"];
        return;
    } else if ([self.motherRegisterRegionNameTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择母亲户籍所在地"];
        return;
    } else if ([self.motherRegisterAddrTV.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请输入母亲户籍所在地址"];
        return;
    } else if ([self.motherWorkplaceNameTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择母亲务工地"];
        return;
    } else if ([self.motherWorkerAddrTV.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择母亲务工详细地址"];
        return;
    } else if ([self.motherHealthTF.text isEqualToString:@""] || [self.motherHealthTF.text isEqualToString:@"请选择"]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择母亲健康情况"];
        return;
    } else if ([self.motherHealthTF.text rangeOfString:@"残疾"].length > 0 && ([self.motherDisTypeTF.text isEqualToString:@""] || [self.motherDisTypeTF.text isEqualToString:@"请选择"])) {
        [MBProgressHUD showTipMessageInWindow:@"请选择母亲残疾类别"];
        return;
    } else if ([self.motherHealthTF.text rangeOfString:@"残疾"].length > 0 && [self.motherDisLevelTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择母亲残疾等级"];
        return;
    } else if ([self.motherHealthTF.text rangeOfString:@"患病"].length > 0 && ([self.motherSeriousIllnessTypeTF.text isEqualToString:@""] || [self.motherSeriousIllnessTypeTF.text isEqualToString:@"请选择"])) {
        [MBProgressHUD showTipMessageInWindow:@"请选择母亲大病病种"];
        return;
    }
    
    else if ([self.alloutTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择双亲是否同时外出"];
        return;
    } else if ([self.delegationTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择是否委托其他监护人"];
        return;
    } else if ([self.guardianNameTF.text isEqualToString:@""] && [self.delegationTF.text isEqualToString:@"是"]) {
        [MBProgressHUD showTipMessageInWindow:@"请输入监护人姓名"];
        return;
    } else if ([self.guardianTelephoneTF.text isEqualToString:@""] && [self.delegationTF.text isEqualToString:@"是"]) {
        [MBProgressHUD showTipMessageInWindow:@"请输入监护人电话"];
        return;
    } else if ([self.guardianIdcardTF.text isEqualToString:@""] && [self.delegationTF.text isEqualToString:@"是"]) {
        [MBProgressHUD showTipMessageInWindow:@"请输入监护人身份证号"];
        return;
    } else if ([self.guardianAddressTV.text isEqualToString:@""] && [self.delegationTF.text isEqualToString:@"是"]) {
        [MBProgressHUD showTipMessageInWindow:@"请输入监护人居住地址"];
        return;
    } else if ([self.guardianShipTF.text isEqualToString:@""] && [self.delegationTF.text isEqualToString:@"是"]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择监护人与儿童的关系"];
        return;
    } else if ([self.guardianTypeTF.text isEqualToString:@""] && [self.delegationTF.text isEqualToString:@"是"]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择监护类型"];
        return;
    } else if (([self.guardianPhysicalConditionTF.text isEqualToString:@""] || [self.guardianPhysicalConditionTF.text isEqualToString:@"请选择"]) && [self.delegationTF.text isEqualToString:@"是"]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择监护人健康情况"];
        return;
    } else if ([self.guardianDisabilitySelectTF.text isEqualToString:@""] && [self.delegationTF.text isEqualToString:@"是"] && [self.guardianPhysicalConditionTF.text rangeOfString:@"残疾"].length > 0) {
        [MBProgressHUD showTipMessageInWindow:@"请选择监护人残疾类别"];
        return;
    } else if ([self.guardianDisabilityLevelTF.text isEqualToString:@""] && [self.delegationTF.text isEqualToString:@"是"] && [self.guardianPhysicalConditionTF.text rangeOfString:@"残疾"].length > 0) {
        [MBProgressHUD showTipMessageInWindow:@"请选择监护人残疾等级"];
        return;
    } else if ([self.guardianSeriousIllnessTypeTF.text isEqualToString:@""] && [self.delegationTF.text isEqualToString:@"是"] && [self.guardianPhysicalConditionTF.text rangeOfString:@"患病"].length > 0) {
        [MBProgressHUD showTipMessageInWindow:@"请选择监护人大病病种"];
        return;
    } else if ([self.guardianScoreTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择监护情况评估"];
        return;
    } else if ([self.responsibilityTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请输入负责人姓名"];
        return;
    } else if ([self.orgPhoneTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请输入联系电话"];
        return;
    } else if (![ValidateUtils validateMobile:self.orgPhoneTF.text]) {
        [MBProgressHUD showTipMessageInWindow:@"联系电话填写有误"];
        return;
    } else if (![[ValidateUtils validateNull:self.orgTelephoneTF.text] isEqualToString:@""] && ![ValidateUtils validateMobile:self.orgTelephoneTF.text]) {
        [MBProgressHUD showTipMessageInWindow:@"固定电话填写有误"];
        return;
    } else if ([self.institutionalNatureTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择单位性质"];
        return;
    } else if ([self.orgAddressTV.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请输入机构地址"];
        return;
    } else if ([self.helpProposalTF.text isEqualToString:@""]) {
        [MBProgressHUD showTipMessageInWindow:@"请选择帮扶建议"];
        return;
    }
    
    else if (![[ValidateUtils validateNull:self.fatherIdcardTF.text] isEqualToString:@""] && [self.fatherIdcardTF.text isEqualToString:self.personalIDCardTF.text]) {
        [MBProgressHUD showTipMessageInWindow:@"儿童身份证号与父亲身份证号不可一致"];
        return;
    } else if (![[ValidateUtils validateNull:self.motherIdcardTF.text] isEqualToString:@""] && [self.motherIdcardTF.text isEqualToString:self.personalIDCardTF.text]) {
        [MBProgressHUD showTipMessageInWindow:@"儿童身份证号与母亲身份证号不可一致"];
        return;
    } else if (![[ValidateUtils validateNull:self.fatherIdcardTF.text] isEqualToString:@""] && [self.fatherIdcardTF.text isEqualToString:self.motherIdcardTF.text]) {
        [MBProgressHUD showTipMessageInWindow:@"母亲身份证号与父亲身份证号不可一致"];
        return;
    }
    
    NSArray *register_typeArray = self.downSelectDict[@"register_type"];//户口性质
    NSArray *nationArray = self.downSelectDict[@"nation_select"];
    NSArray *sexArray = self.downSelectDict[@"children_gender"];
    NSArray *physical_conditionArray = self.downSelectDict[@"physical_condition"];//身体状况duoge
    NSArray *report_typeArray = self.downSelectDict[@"report_type"];//所属专业
    NSArray *poor_family_typeArray = self.downSelectDict[@"poor_family_type"];//家庭贫困
    NSArray *custody_dilemmaArray = self.downSelectDict[@"custody_dilemma"];//监护困境
    NSArray *custody_nobodyArray = self.downSelectDict[@"custody_nobody"];//事实无人抚养
    NSArray *schoolingArray = self.downSelectDict[@"schooling"];//就学情况
    NSArray *lodingArray = self.downSelectDict[@"loding"];//是否学校寄宿``````
    NSArray *other_specialArray = self.downSelectDict[@"other_special"];//其他特殊情况``````
    NSArray *doubtful_disability_typeArray = self.downSelectDict[@"doubtful_disability_type"];//疑似残疾类型
    NSArray *disability_selectArray = self.downSelectDict[@"disability_select"];//残疾类别
    NSArray *disability_levelArray = self.downSelectDict[@"disability_level"];//残疾等级
    NSArray *serious_illness_typeArray = self.downSelectDict[@"serious_illness_type"];//大病病种
    NSArray *social_assistanceArray = self.downSelectDict[@"social_assistance"];//社会福利，救助，扶贫落实情况`````
    NSArray *encroachArray = self.downSelectDict[@"encroach"];//有无发生遭受监护人侵害的情形````````
    NSArray *source_incomeArray = self.downSelectDict[@"source_income"];//父亲。母亲家庭经济来源duoge``````
    NSArray *other_special_adultArray = self.downSelectDict[@"other_special_adult"];//父亲。母亲其他特殊情况duoge```````
    NSArray *delegationArray = self.downSelectDict[@"delegation"];//双亲是否委托其他监护人
    NSArray *who_cantArray = self.downSelectDict[@"who_cant"];//父母哪一方无监护能力
    NSArray *custodian_shipArray = self.downSelectDict[@"custodian_ship"];//与儿童的关系
    NSArray *guardian_typeArray = self.downSelectDict[@"guardian_type"];//监护类型
    NSArray *guardianphysical_conditionArray = self.downSelectDict[@"physical_condition"];//健康情况
    NSArray *guardiandisability_selectArray = self.downSelectDict[@"disability_select"];//残疾类别
    NSArray *guardiandisability_levelArray = self.downSelectDict[@"disability_level"];//残疾等级
    NSArray *gserious_illness_typeArray = self.downSelectDict[@"serious_illness_type"];//大病病种
    NSArray *guardianother_specialArray = self.downSelectDict[@"other_special"];//其他特殊情况
    NSArray *all_outArray = self.downSelectDict[@"all_out"];//双亲是否同时外出
    NSArray *one_outArray = self.downSelectDict[@"one_out"];//双亲是否一方外出（另一方无监护能力）
    NSArray *guardian_scoreArray = self.downSelectDict[@"guardian_score"];//监护情况评估
    NSArray *salvation_conditionArray = self.downSelectDict[@"salvation_condition"];//救助帮扶情况```````
    NSArray *institutional_natureArray = self.downSelectDict[@"institutional_nature"];//机构性质
    NSArray *help_proposalArray = self.downSelectDict[@"help_proposal"];//帮扶建议
    
    NSMutableDictionary *childParamM = [[NSMutableDictionary alloc] initWithDictionary:@{
                                                                                         @"name":self.nameTF.text,
                                                                                         @"registerType":[self getIdByValue:self.registerTypeTF.text fromArray:register_typeArray],
                                                                                         @"nation":[self getIdByValue:self.nationTF.text fromArray:nationArray],
                                                                                         @"gender":[self getIdByValue:self.sexTF.text fromArray:sexArray],
                                                                                         @"idCard":self.personalIDCardTF.text,
                                                                                         @"bridthday":self.birthdayTF.text,
                                                                                         @"regionCode":self.regionCodeTF.placeholder,
                                                                                         @"addressRegister":self.addressRegisterTV.text,
                                                                                         @"address":self.addressTV.text,
                                                                                         @"loding":[self getIdByValue:self.lodingTF.text fromArray:lodingArray],
                                                                                         @"schooling":[self getIdByValue:self.schoolingTF.text fromArray:schoolingArray]
                                                                                         }];
    
    NSMutableString *physicalConditionTFStringM = [[NSMutableString alloc] initWithString:@""];
    NSArray *physicalConditionTFStringArray = [self.physicalConditionTF.text componentsSeparatedByString:@" "];
    for (NSString *physicalCondition in physicalConditionTFStringArray) {
        [physicalConditionTFStringM appendFormat:@"%@,",[self getIdByValue:physicalCondition fromArray:physical_conditionArray]];
    }
    [childParamM setValue:[physicalConditionTFStringM substringToIndex:physicalConditionTFStringM.length-1] forKey:@"physicalCondition"];
    
    if ([self.physicalConditionTF.text rangeOfString:@"残疾"].length > 0 && !([self.doubtfulDisabilityTypeTF.text isEqualToString:@""] || [self.doubtfulDisabilityTypeTF.text isEqualToString:@"请选择"])) {
        NSMutableString *doubtfulDisabilityTypeTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *doubtfulDisabilityTypeTFStringArray = [self.doubtfulDisabilityTypeTF.text componentsSeparatedByString:@" "];
        for (NSString *doubtfulDisabilityType in doubtfulDisabilityTypeTFStringArray) {
            [doubtfulDisabilityTypeTFStringM appendFormat:@"%@,",[self getIdByValue:doubtfulDisabilityType fromArray:doubtful_disability_typeArray]];
        }
        [childParamM setValue:[doubtfulDisabilityTypeTFStringM substringToIndex:doubtfulDisabilityTypeTFStringM.length-1] forKey:@"doubtfulDisabilityType"];
    } else {
        [childParamM setValue:@"" forKey:@"doubtfulDisabilityType"];
    }
    if ([self.physicalConditionTF.text rangeOfString:@"残疾"].length > 0 && !([self.disabilitySelectTF.text isEqualToString:@""] || [self.disabilitySelectTF.text isEqualToString:@"请选择"])) {
        NSMutableString *disabilitySelectTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *disabilitySelectTFStringArray = [self.disabilitySelectTF.text componentsSeparatedByString:@" "];
        for (NSString *disabilitySelect in disabilitySelectTFStringArray) {
            [disabilitySelectTFStringM appendFormat:@"%@,",[self getIdByValue:disabilitySelect fromArray:disability_selectArray]];
        }
        [childParamM setValue:[disabilitySelectTFStringM substringToIndex:disabilitySelectTFStringM.length-1] forKey:@"disabilityType"];
    } else {
        [childParamM setValue:@"" forKey:@"disabilityType"];
    }
    if ([self.physicalConditionTF.text rangeOfString:@"残疾"].length > 0 && ![self.disabilityLevelTF.text isEqualToString:@""]) {
        [childParamM setValue:[self getIdByValue:self.disabilityLevelTF.text fromArray:disability_levelArray] forKey:@"disabilityLevel"];
    } else {
        [childParamM setValue:@"" forKey:@"disabilityLevel"];
    }
    if ([self.physicalConditionTF.text rangeOfString:@"患病"].length > 0 && !([self.seriousIllnessTypeTF.text isEqualToString:@""] || [self.seriousIllnessTypeTF.text isEqualToString:@"请选择"])) {
        NSMutableString *seriousIllnessTypeTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *seriousIllnessTypeTFStringArray = [self.seriousIllnessTypeTF.text componentsSeparatedByString:@" "];
        for (NSString *seriousIllnessType in seriousIllnessTypeTFStringArray) {
            [seriousIllnessTypeTFStringM appendFormat:@"%@,",[self getIdByValue:seriousIllnessType fromArray:serious_illness_typeArray]];
        }
        [childParamM setValue:[seriousIllnessTypeTFStringM substringToIndex:seriousIllnessTypeTFStringM.length-1] forKey:@"seriousIllnessType"];
    } else {
        [childParamM setValue:@"" forKey:@"seriousIllnessType"];
    }
    if ([self.reportTypeTF.text rangeOfString:@"困境"].length > 0 && !([self.poorFamilyTypeTF.text isEqualToString:@""] || [self.poorFamilyTypeTF.text isEqualToString:@"请选择"])) {
        NSMutableString *poorFamilyTypeTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *poorFamilyTypeTFStringArray = [self.poorFamilyTypeTF.text componentsSeparatedByString:@" "];
        for (NSString *poorFamilyType in poorFamilyTypeTFStringArray) {
            [poorFamilyTypeTFStringM appendFormat:@"%@,",[self getIdByValue:poorFamilyType fromArray:poor_family_typeArray]];
        }
        [childParamM setValue:[poorFamilyTypeTFStringM substringToIndex:poorFamilyTypeTFStringM.length-1] forKey:@"poorFamilyType"];
    } else {
        [childParamM setValue:@"" forKey:@"poorFamilyType"];
    }
    if ([self.reportTypeTF.text rangeOfString:@"困境"].length > 0 && !([self.custodyDilemmaTF.text isEqualToString:@""] || [self.custodyDilemmaTF.text isEqualToString:@"请选择"])) {
        NSMutableString *custodyDilemmaTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *custodyDilemmaTFStringArray = [self.custodyDilemmaTF.text componentsSeparatedByString:@" "];
        for (NSString *custodyDilemma in custodyDilemmaTFStringArray) {
            [custodyDilemmaTFStringM appendFormat:@"%@,",[self getIdByValue:custodyDilemma fromArray:custody_dilemmaArray]];
        }
        [childParamM setValue:[custodyDilemmaTFStringM substringToIndex:custodyDilemmaTFStringM.length-1] forKey:@"custodyDilemma"];
    } else {
        [childParamM setValue:@"" forKey:@"custodyDilemma"];
    }
    if ([self.reportTypeTF.text rangeOfString:@"困境"].length > 0 && !([self.custodyNobodyTF.text isEqualToString:@""] || [self.custodyNobodyTF.text isEqualToString:@"请选择"])) {
        NSMutableString *custodyNobodyTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *custodyNobodyTFStringArray = [self.custodyNobodyTF.text componentsSeparatedByString:@" "];
        for (NSString *custodyNobody in custodyNobodyTFStringArray) {
            [custodyNobodyTFStringM appendFormat:@"%@,",[self getIdByValue:custodyNobody fromArray:custody_nobodyArray]];
        }
        [childParamM setValue:[custodyNobodyTFStringM substringToIndex:custodyNobodyTFStringM.length-1] forKey:@"custodyNobody"];
    } else {
        [childParamM setValue:@"" forKey:@"custodyNobody"];
    }
    
    NSMutableString *reportTypeTFStringM = [[NSMutableString alloc] initWithString:@""];
    NSArray *reportTypeTFStringArray = [self.reportTypeTF.text componentsSeparatedByString:@" "];
    for (NSString *reportType in reportTypeTFStringArray) {
        [reportTypeTFStringM appendFormat:@"%@,",[self getIdByValue:reportType fromArray:report_typeArray]];
    }
    [childParamM setValue:[reportTypeTFStringM substringToIndex:reportTypeTFStringM.length-1] forKey:@"reportType"];
    
    if (![self.poorFamilyTypeTF.text isEqualToString:@""] && [self.reportTypeTF.text rangeOfString:@"困境"].length > 0) {
        NSMutableString *poorFamilyTypeTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *poorFamilyTypeTFStringArray = [self.poorFamilyTypeTF.text componentsSeparatedByString:@" "];
        for (NSString *poorFamilyType in poorFamilyTypeTFStringArray) {
            [poorFamilyTypeTFStringM appendFormat:@"%@,",[self getIdByValue:poorFamilyType fromArray:poor_family_typeArray]];
        }
        [childParamM setValue:[poorFamilyTypeTFStringM substringToIndex:poorFamilyTypeTFStringM.length-1] forKey:@"poorFamilyType"];
    } else {
        [childParamM setValue:@"" forKey:@"poorFamilyType"];
    }
    if (![self.custodyDilemmaTF.text isEqualToString:@""] && [self.reportTypeTF.text rangeOfString:@"困境"].length > 0) {
        NSMutableString *custodyDilemmaTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *custodyDilemmaTFStringArray = [self.custodyDilemmaTF.text componentsSeparatedByString:@" "];
        for (NSString *custodyDilemma in custodyDilemmaTFStringArray) {
            [custodyDilemmaTFStringM appendFormat:@"%@,",[self getIdByValue:custodyDilemma fromArray:custody_dilemmaArray]];
        }
        [childParamM setValue:[custodyDilemmaTFStringM substringToIndex:custodyDilemmaTFStringM.length-1] forKey:@"custodyDilemma"];
    } else {
        [childParamM setValue:@"" forKey:@"custodyDilemma"];
    }
    if (![self.custodyNobodyTF.text isEqualToString:@""] && [self.reportTypeTF.text rangeOfString:@"困境"].length > 0) {
        [childParamM setValue:[self getIdByValue:self.custodyNobodyTF.text fromArray:custody_nobodyArray] forKey:@"custodyNobody"];
    } else {
        [childParamM setValue:@"" forKey:@"custodyNobody"];
    }
    if (![self.otherSpecialTF.text isEqualToString:@""] && ![self.otherSpecialTF.text isEqualToString:@"请选择"]) {
        NSMutableString *otherSpecialTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *otherSpecialTFStringArray = [self.otherSpecialTF.text componentsSeparatedByString:@" "];
        for (NSString *otherSpecial in otherSpecialTFStringArray) {
            [otherSpecialTFStringM appendFormat:@"%@,",[self getIdByValue:otherSpecial fromArray:other_specialArray]];
        }
        [childParamM setValue:[otherSpecialTFStringM substringToIndex:otherSpecialTFStringM.length-1] forKey:@"otherSpecial"];
    } else {
        [childParamM setValue:@"" forKey:@"otherSpecial"];
    }
    if ([self.otherSpecialTF.text rangeOfString:@"其他"].length > 0) {
        [childParamM setValue:self.otherSpecialOtherTV.text forKey:@"otherSpecialContent"];
    } else {
        [childParamM setValue:@"" forKey:@"otherSpecialContent"];
    }
    if (![self.socialAssistanceTF.text isEqualToString:@""] && ![self.socialAssistanceTF.text isEqualToString:@"请选择"]) {
        NSMutableString *socialAssistanceTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *socialAssistanceTFStringArray = [self.socialAssistanceTF.text componentsSeparatedByString:@" "];
        for (NSString *socialAssistance in socialAssistanceTFStringArray) {
            [socialAssistanceTFStringM appendFormat:@"%@,",[self getIdByValue:socialAssistance fromArray:social_assistanceArray]];
        }
        [childParamM setValue:[socialAssistanceTFStringM substringToIndex:socialAssistanceTFStringM.length-1] forKey:@"socialAssistance"];
    } else {
        [childParamM setValue:@"" forKey:@"socialAssistance"];
    }
    if ([self.socialAssistanceTF.text rangeOfString:@"其他"].length > 0) {
        [childParamM setValue:self.socialAssistanceOtherTV.text forKey:@"socialAssistanceContent"];
    } else {
        [childParamM setValue:@"" forKey:@"socialAssistanceContent"];
    }
    if (![self.encroachTF.text isEqualToString:@""] && ![self.encroachTF.text isEqualToString:@"请选择"]) {
        NSMutableString *encroachTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *encroachTFStringArray = [self.encroachTF.text componentsSeparatedByString:@" "];
        for (NSString *encroach in encroachTFStringArray) {
            [encroachTFStringM appendFormat:@"%@,",[self getIdByValue:encroach fromArray:encroachArray]];
        }
        [childParamM setValue:[encroachTFStringM substringToIndex:encroachTFStringM.length-1] forKey:@"encroach"];
    } else {
        [childParamM setValue:@"" forKey:@"encroach"];
    }
    if ([self.encroachTF.text rangeOfString:@"其他"].length > 0) {
        [childParamM setValue:self.encroachOtherTV.text forKey:@"encroachContent"];
    } else {
        [childParamM setValue:@"" forKey:@"encroachContent"];
    }
    
    NSMutableDictionary *familyParamM = [[NSMutableDictionary alloc] initWithDictionary:@{
                                                                                          @"grandfatherName":self.grandfatherNameTF.text,
                                                                                          @"grandfatherBirthday":self.grandfatherBirthdayTF.text,
                                                                                          @"grandmotherName":self.grandmotherNameTF.text,
                                                                                          @"grandmotherBirthday":self.grandmotherBirthdayTF.text,
                                                                                          @"fatherName":self.fatherNameTF.text,
                                                                                          @"fatherBirthday":self.fatherBirthdayTF.text,
                                                                                          @"fatherTelephone":self.fatherTelephoneTF.text,
                                                                                          @"fatherIdcard":self.fatherIdcardTF.text,
                                                                                          @"fatherRegisterRegionName":self.fatherRegisterRegionNameTF.placeholder,
                                                                                          @"fatherRegisterAddr":self.fatherRegisterAddrTV.text,
                                                                                          @"fatherWorkplaceName":self.fatherWorkplaceNameTF.placeholder?self.fatherWorkplaceNameTF.placeholder:@"",
                                                                                          @"fatherWorkerAddr":self.fatherWorkerAddrTV.text,
                                                                                          @"motherName":self.motherNameTF.text,
                                                                                          @"motherBirthday":self.motherBirthdayTF.text,
                                                                                          @"motherTelephone":self.motherTelephoneTF.text,
                                                                                          @"motherIdcard":self.motherIdcardTF.text,
                                                                                          @"motherRegisterRegionName":self.motherRegisterRegionNameTF.placeholder,
                                                                                          @"motherRegisterAddr":self.motherRegisterAddrTV.text,
                                                                                          @"motherWorkplaceName":self.motherWorkplaceNameTF.placeholder,
                                                                                          @"motherWorkerAddr":self.motherWorkerAddrTV.text
                                                                                          }];
    
    NSMutableString *fatherHealthTFStringM = [[NSMutableString alloc] initWithString:@""];
    NSArray *fatherHealthTFStringArray = [self.fatherHealthTF.text componentsSeparatedByString:@" "];
    for (NSString *physicalCondition in fatherHealthTFStringArray) {
        [fatherHealthTFStringM appendFormat:@"%@,",[self getIdByValue:physicalCondition fromArray:physical_conditionArray]];
    }
    [familyParamM setValue:[fatherHealthTFStringM substringToIndex:fatherHealthTFStringM.length-1] forKey:@"fatherHealth"];
    
    if ([self.fatherHealthTF.text rangeOfString:@"残疾"].length > 0 && !([self.fatherDisTypeTF.text isEqualToString:@""] || [self.fatherDisTypeTF.text isEqualToString:@"请选择"])) {
        NSMutableString *fatherDisTypeTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *fatherDisTypeTFStringArray = [self.fatherDisTypeTF.text componentsSeparatedByString:@" "];
        for (NSString *fatherDisType in fatherDisTypeTFStringArray) {
            [fatherDisTypeTFStringM appendFormat:@"%@,",[self getIdByValue:fatherDisType fromArray:disability_selectArray]];
        }
        [familyParamM setValue:[fatherDisTypeTFStringM substringToIndex:fatherDisTypeTFStringM.length-1] forKey:@"fatherDisType"];
    } else {
        [familyParamM setValue:@"" forKey:@"fatherDisType"];
    }
    if (![self.fatherDisLevelTF.text isEqualToString:@""] && [self.fatherHealthTF.text rangeOfString:@"残疾"].length > 0) {
        [familyParamM setValue:[self getIdByValue:self.fatherDisLevelTF.text fromArray:disability_levelArray] forKey:@"fatherDisLevel"];
    } else {
        [familyParamM setValue:@"" forKey:@"fatherDisLevel"];
    }
    if ([self.fatherHealthTF.text rangeOfString:@"患病"].length > 0 && !([self.fatherSeriousIllnessTypeTF.text isEqualToString:@""] || [self.fatherSeriousIllnessTypeTF.text isEqualToString:@"请选择"])) {
        NSMutableString *seriousIllnessTypeTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *seriousIllnessTypeTFStringArray = [self.fatherSeriousIllnessTypeTF.text componentsSeparatedByString:@" "];
        for (NSString *seriousIllnessType in seriousIllnessTypeTFStringArray) {
            [seriousIllnessTypeTFStringM appendFormat:@"%@,",[self getIdByValue:seriousIllnessType fromArray:serious_illness_typeArray]];
        }
        [familyParamM setValue:[seriousIllnessTypeTFStringM substringToIndex:seriousIllnessTypeTFStringM.length-1] forKey:@"fatherSeriousIllnessType"];
    } else {
        [familyParamM setValue:@"" forKey:@"fatherSeriousIllnessType"];
    }
    if (![self.fatherFamilyshipTF.text isEqualToString:@""] && ![self.fatherFamilyshipTF.text isEqualToString:@"请选择"]) {
        NSMutableString *fatherFamilyshipTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *fatherFamilyshipTFStringArray = [self.fatherFamilyshipTF.text componentsSeparatedByString:@" "];
        for (NSString *fatherFamilyship in fatherFamilyshipTFStringArray) {
            [fatherFamilyshipTFStringM appendFormat:@"%@,",[self getIdByValue:fatherFamilyship fromArray:source_incomeArray]];
        }
        [familyParamM setValue:[fatherFamilyshipTFStringM substringToIndex:fatherFamilyshipTFStringM.length-1] forKey:@"fatherFamilyship"];
    } else {
        [familyParamM setValue:@"" forKey:@"fatherFamilyship"];
    }
    if (![self.fatherFamilyshipOtherTV.text isEqualToString:@""] && ![self.fatherFamilyshipTF.text isEqualToString:@"请选择"] && [self.fatherFamilyshipTF.text rangeOfString:@"其他"].length > 0) {
        [familyParamM setValue:self.fatherFamilyshipOtherTV.text forKey:@"fatherShipContent"];
    } else {
        [familyParamM setValue:@"" forKey:@"fatherShipContent"];
    }
    if (![self.fatherOtherSpecialTF.text isEqualToString:@""] && ![self.fatherOtherSpecialTF.text isEqualToString:@"请选择"]) {
        NSMutableString *fatherOtherSpecialTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *fatherOtherSpecialTFStringArray = [self.fatherOtherSpecialTF.text componentsSeparatedByString:@" "];
        for (NSString *fatherOtherSpecial in fatherOtherSpecialTFStringArray) {
            [fatherOtherSpecialTFStringM appendFormat:@"%@,",[self getIdByValue:fatherOtherSpecial fromArray:other_special_adultArray]];
        }
        [familyParamM setValue:[fatherOtherSpecialTFStringM substringToIndex:fatherOtherSpecialTFStringM.length-1] forKey:@"fatherOtherSpecial"];
    } else {
        [familyParamM setValue:@"" forKey:@"fatherOtherSpecial"];
    }
    if (![self.fatherOtherSpecialOtherTV.text isEqualToString:@""] && ![self.fatherOtherSpecialTF.text isEqualToString:@"请选择"] && [self.fatherOtherSpecialTF.text rangeOfString:@"其他"].length > 0) {
        [familyParamM setValue:self.fatherOtherSpecialOtherTV.text forKey:@"fatherOtherContent"];
    } else {
        [familyParamM setValue:@"" forKey:@"fatherOtherContent"];
    }
    
    NSMutableString *motherHealthTFStringM = [[NSMutableString alloc] initWithString:@""];
    NSArray *motherHealthTFStringArray = [self.motherHealthTF.text componentsSeparatedByString:@" "];
    for (NSString *physicalCondition in motherHealthTFStringArray) {
        [motherHealthTFStringM appendFormat:@"%@,",[self getIdByValue:physicalCondition fromArray:physical_conditionArray]];
    }
    [familyParamM setValue:[motherHealthTFStringM substringToIndex:motherHealthTFStringM.length-1] forKey:@"motherHealth"];
    
    if ([self.motherHealthTF.text rangeOfString:@"残疾"].length > 0 && !([self.motherDisTypeTF.text isEqualToString:@""] || [self.motherDisTypeTF.text isEqualToString:@"请选择"])) {
        NSMutableString *motherDisTypeTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *motherDisTypeTFStringArray = [self.motherDisTypeTF.text componentsSeparatedByString:@" "];
        for (NSString *motherDisType in motherDisTypeTFStringArray) {
            [motherDisTypeTFStringM appendFormat:@"%@,",[self getIdByValue:motherDisType fromArray:disability_selectArray]];
        }
        [familyParamM setValue:[motherDisTypeTFStringM substringToIndex:motherDisTypeTFStringM.length-1] forKey:@"motherDisType"];
    } else {
        [familyParamM setValue:@"" forKey:@"motherDisType"];
    }
    if (![self.motherDisLevelTF.text isEqualToString:@""] && [self.motherHealthTF.text rangeOfString:@"残疾"].length > 0) {
        [familyParamM setValue:[self getIdByValue:self.motherDisLevelTF.text fromArray:disability_levelArray] forKey:@"motherDisLevel"];
    } else {
        [familyParamM setValue:@"" forKey:@"motherDisLevel"];
    }
    if ([self.motherHealthTF.text rangeOfString:@"患病"].length > 0 && !([self.motherSeriousIllnessTypeTF.text isEqualToString:@""] || [self.motherSeriousIllnessTypeTF.text isEqualToString:@"请选择"])) {
        NSMutableString *seriousIllnessTypeTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *seriousIllnessTypeTFStringArray = [self.motherSeriousIllnessTypeTF.text componentsSeparatedByString:@" "];
        for (NSString *seriousIllnessType in seriousIllnessTypeTFStringArray) {
            [seriousIllnessTypeTFStringM appendFormat:@"%@,",[self getIdByValue:seriousIllnessType fromArray:serious_illness_typeArray]];
        }
        [familyParamM setValue:[seriousIllnessTypeTFStringM substringToIndex:seriousIllnessTypeTFStringM.length-1] forKey:@"motherSeriousIllnessType"];
    } else {
        [familyParamM setValue:@"" forKey:@"motherSeriousIllnessType"];
    }
    if (![self.motherFamilyshipTF.text isEqualToString:@""] && ![self.motherFamilyshipTF.text isEqualToString:@"请选择"]) {
        NSMutableString *motherFamilyshipTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *motherFamilyshipTFStringArray = [self.motherFamilyshipTF.text componentsSeparatedByString:@" "];
        for (NSString *motherFamilyship in motherFamilyshipTFStringArray) {
            [motherFamilyshipTFStringM appendFormat:@"%@,",[self getIdByValue:motherFamilyship fromArray:source_incomeArray]];
        }
        [familyParamM setValue:[motherFamilyshipTFStringM substringToIndex:motherFamilyshipTFStringM.length-1] forKey:@"motherFamilyship"];
    } else {
        [familyParamM setValue:@"" forKey:@"motherFamilyship"];
    }
    if (![self.motherFamilyshipOtherTV.text isEqualToString:@""] && ![self.motherFamilyshipTF.text isEqualToString:@"请选择"] && [self.motherFamilyshipTF.text rangeOfString:@"其他"].length > 0) {
        [familyParamM setValue:self.motherFamilyshipOtherTV.text forKey:@"motherShipContent"];
    } else {
        [familyParamM setValue:@"" forKey:@"motherShipContent"];
    }
    if (![self.motherOtherSpecialTF.text isEqualToString:@""] && ![self.motherOtherSpecialTF.text isEqualToString:@"请选择"]) {
        NSMutableString *motherOtherSpecialTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *motherOtherSpecialTFStringArray = [self.motherOtherSpecialTF.text componentsSeparatedByString:@" "];
        for (NSString *motherOtherSpecial in motherOtherSpecialTFStringArray) {
            [motherOtherSpecialTFStringM appendFormat:@"%@,",[self getIdByValue:motherOtherSpecial fromArray:other_special_adultArray]];
        }
        [familyParamM setValue:[motherOtherSpecialTFStringM substringToIndex:motherOtherSpecialTFStringM.length-1] forKey:@"motherOtherSpecial"];
    } else {
        [familyParamM setValue:@"" forKey:@"motherOtherSpecial"];
    }
    if (![self.motherOtherSpecialOtherTV.text isEqualToString:@""] && ![self.motherOtherSpecialTF.text isEqualToString:@"请选择"] && [self.motherOtherSpecialTF.text rangeOfString:@"其他"].length > 0) {
        [familyParamM setValue:self.motherOtherSpecialOtherTV.text forKey:@"motherOtherContent"];
    } else {
        [familyParamM setValue:@"" forKey:@"motherOtherContent"];
    }
    
    NSMutableDictionary *custodyParamM = [[NSMutableDictionary alloc] initWithDictionary:@{
                                                                                           @"allout":[self getIdByValue:self.alloutTF.text fromArray:all_outArray],
                                                                                           @"delegation":[self getIdByValue:self.delegationTF.text fromArray:delegationArray],
                                                                                           @"guardianScore":[self getIdByValue:self.guardianScoreTF.text fromArray:guardian_scoreArray],
                                                                                           @"responsibility":self.responsibilityTF.text,
                                                                                           @"orgPhone":self.orgPhoneTF.text,
                                                                                           @"orgTelephone":self.orgTelephoneTF.text,
                                                                                           @"institutionalNature":[self getIdByValue:self.institutionalNatureTF.text fromArray:institutional_natureArray],
                                                                                           @"orgAddress":self.orgAddressTV.text,
                                                                                           @"helpProposal":[self getIdByValue:self.helpProposalTF.text fromArray:help_proposalArray],
                                                                                           @"name":self.guardianNameTF.text,
                                                                                           @"telephone":self.guardianTelephoneTF.text,
                                                                                           @"idcard":self.guardianIdcardTF.text,
                                                                                           @"address":self.guardianAddressTV.text
                                                                                           }];
    
    if (![self.oneoutTF.text isEqualToString:@""] && [self.alloutTF.text isEqualToString:@"否"]) {
        [custodyParamM setValue:[self getIdByValue:self.oneoutTF.text fromArray:one_outArray] forKey:@"oneout"];
    } else {
        [custodyParamM setValue:@"" forKey:@"oneout"];
    }
    if (![self.whoCantTF.text isEqualToString:@""] && [self.oneoutTF.text isEqualToString:@"是"] && [self.alloutTF.text isEqualToString:@"否"]) {
        [custodyParamM setValue:[self getIdByValue:self.whoCantTF.text fromArray:who_cantArray] forKey:@"whocant"];
    } else {
        [custodyParamM setValue:@"" forKey:@"whocant"];
    }
    if (![self.guardianShipTF.text isEqualToString:@""] && [self.delegationTF.text isEqualToString:@"是"]) {
        [custodyParamM setValue:[self getIdByValue:self.guardianShipTF.text fromArray:custodian_shipArray] forKey:@"relations"];
    } else {
        [custodyParamM setValue:@"" forKey:@"relations"];
    }
    if (![self.guardianTypeTF.text isEqualToString:@""] && [self.delegationTF.text isEqualToString:@"是"]) {
        [custodyParamM setValue:[self getIdByValue:self.guardianTypeTF.text fromArray:guardian_typeArray] forKey:@"guardianType"];
    } else {
        [custodyParamM setValue:@"" forKey:@"guardianType"];
    }
    if (![self.guardianDisabilityLevelTF.text isEqualToString:@""] && [self.delegationTF.text isEqualToString:@"是"]) {
        [custodyParamM setValue:[self getIdByValue:self.guardianDisabilityLevelTF.text fromArray:guardiandisability_levelArray] forKey:@"disableLevel"];
    } else {
        [custodyParamM setValue:@"" forKey:@"disableLevel"];
    }
    
    if (![self.guardianPhysicalConditionTF.text isEqualToString:@""] && [self.delegationTF.text isEqualToString:@"是"]) {
        NSMutableString *physicalConditionTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *physicalConditionTFStringArray = [self.guardianPhysicalConditionTF.text componentsSeparatedByString:@" "];
        for (NSString *physicalCondition in physicalConditionTFStringArray) {
            [physicalConditionTFStringM appendFormat:@"%@,",[self getIdByValue:physicalCondition fromArray:guardianphysical_conditionArray]];
        }
        [custodyParamM setValue:[physicalConditionTFStringM substringToIndex:physicalConditionTFStringM.length-1] forKey:@"health"];
    } else {
        [custodyParamM setValue:@"" forKey:@"health"];
    }
    if (![self.guardianDisabilitySelectTF.text isEqualToString:@""] && [self.delegationTF.text isEqualToString:@"是"]) {
        NSMutableString *disabilitySelectTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *disabilitySelectTFStringArray = [self.guardianDisabilitySelectTF.text componentsSeparatedByString:@" "];
        for (NSString *disabilitySelect in disabilitySelectTFStringArray) {
            [disabilitySelectTFStringM appendFormat:@"%@,",[self getIdByValue:disabilitySelect fromArray:guardiandisability_selectArray]];
        }
        [custodyParamM setValue:[disabilitySelectTFStringM substringToIndex:disabilitySelectTFStringM.length-1] forKey:@"disableType"];
    } else {
        [custodyParamM setValue:@"" forKey:@"disableType"];
    }
    if (![self.guardianSeriousIllnessTypeTF.text isEqualToString:@""] && [self.delegationTF.text isEqualToString:@"是"]) {
        NSMutableString *seriousIllnessTypeTFStringM = [[NSMutableString alloc] initWithString:@""];
        NSArray *seriousIllnessTypeTFStringArray = [self.guardianSeriousIllnessTypeTF.text componentsSeparatedByString:@" "];
        for (NSString *seriousIllnessType in seriousIllnessTypeTFStringArray) {
            [seriousIllnessTypeTFStringM appendFormat:@"%@,",[self getIdByValue:seriousIllnessType fromArray:gserious_illness_typeArray]];
        }
        [custodyParamM setValue:[seriousIllnessTypeTFStringM substringToIndex:seriousIllnessTypeTFStringM.length-1] forKey:@"seriousIllness"];
    } else {
        [custodyParamM setValue:@"" forKey:@"seriousIllness"];
    }
    if (![self.guardianOtherSpecialTF.text isEqualToString:@""] && [self.delegationTF.text isEqualToString:@"是"]) {
        if (![self.guardianOtherSpecialTF.text isEqualToString:@""] && ![self.guardianOtherSpecialTF.text isEqualToString:@"请选择"]) {
            NSMutableString *otherSpecialTFStringM = [[NSMutableString alloc] initWithString:@""];
            NSArray *otherSpecialTFStringArray = [self.guardianOtherSpecialTF.text componentsSeparatedByString:@" "];
            for (NSString *otherSpecial in otherSpecialTFStringArray) {
                [otherSpecialTFStringM appendFormat:@"%@,",[self getIdByValue:otherSpecial fromArray:guardianother_specialArray]];
            }
            [custodyParamM setValue:[otherSpecialTFStringM substringToIndex:otherSpecialTFStringM.length-1] forKey:@"otherSpecial"];
        } else {
            [custodyParamM setValue:@"" forKey:@"otherSpecial"];
        }
    } else {
        [custodyParamM setValue:@"" forKey:@"otherSpecial"];
    }
    if (![self.salvationConditionTF.text isEqualToString:@""] && ![self.salvationConditionTF.text isEqualToString:@"请选择"]) {
        [custodyParamM setValue:[self getIdByValue:self.salvationConditionTF.text fromArray:salvation_conditionArray] forKey:@"salvationCondition"];
    } else {
        [custodyParamM setValue:@"" forKey:@"salvationCondition"];
    }
    
    NSMutableDictionary *paramM = [[NSMutableDictionary alloc] initWithDictionary:@{
                                                                                    @"token":[ValidateUtils validateNull:[UserInfoModel sharedInstance].token]
                                                                                    }];
    
    NSData *childParamMData = [NSJSONSerialization dataWithJSONObject:childParamM.copy options:NSJSONWritingPrettyPrinted error:nil];
    NSString *childParamMString = [[NSString alloc] initWithData:childParamMData encoding:NSUTF8StringEncoding];
    [paramM setObject:childParamMString forKey:@"child"];
    
    NSData *familyParamMData = [NSJSONSerialization dataWithJSONObject:familyParamM.copy options:NSJSONWritingPrettyPrinted error:nil];
    NSString *familyParamMString = [[NSString alloc] initWithData:familyParamMData encoding:NSUTF8StringEncoding];
    [paramM setObject:familyParamMString forKey:@"family"];
    
    NSData *custodyParamMData = [NSJSONSerialization dataWithJSONObject:custodyParamM.copy options:NSJSONWritingPrettyPrinted error:nil];
    NSString *custodyParamMString = [[NSString alloc] initWithData:custodyParamMData encoding:NSUTF8StringEncoding];
    [paramM setObject:custodyParamMString forKey:@"custody"];
    
    WS
    NSString *url = LcimsAdd;
    if (self.isCheckedBefore) {
        url = LSLcimsUpdate;
        [paramM setObject:[ValidateUtils validateNull:self.thisID] forKey:@"id"];
    }
    MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:true];
    [NetworkUtils requestNOHandleWithMethod:@"POST" URL:url param:paramM completionHandler:^(id responseObject, NSError *connectionError) {
        [hud hideAnimated:true];
        if (!connectionError) {
            NSNumber *status = [responseObject objectForKey:@"status"];
            if (status.integerValue == 200) {
                if (self.isCheckedBefore) {
                    if (![[ValidateUtils validateNull:responseObject[@"message"]] isEqualToString:@""]) {
                        [MBProgressHUD showTipMessageInWindow:responseObject[@"message"]];
                    }
                } else {
                    if (![[ValidateUtils validateNull:responseObject[@"message"]] isEqualToString:@""]) {
                        [MBProgressHUD showTipMessageInWindow:responseObject[@"message"]];
                    }
                }
                if (self.refreshBlock) {
                    self.refreshBlock();
                }
                dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
                    [weakSelf.navigationController popViewControllerAnimated:true];
                });
            } else {
                if (![[ValidateUtils validateNull:responseObject[@"message"]] isEqualToString:@""]) {
                    [MBProgressHUD showTipMessageInWindow:responseObject[@"message"]];
                }
            }
        } else {
            [MBProgressHUD showTipMessageInWindow:connectionError.localizedDescription];
        }
    }];
}

- (NSString *)getIdByValue:(NSString *)value fromArray:(NSArray *)dateArray {
    for (NSDictionary *dict in dateArray) {
        if (![[ValidateUtils validateNull:dict[@"value"]] isEqualToString:@""] && [dict[@"value"] isEqualToString:value]) {
            return [ValidateUtils validateNull:dict[@"id"]];
        }
    }
    return @"";
}

- (NSString *)getValueById:(NSString *)Id fromArray:(NSArray *)dateArray {
    for (NSDictionary *dict in dateArray) {
        if (![[ValidateUtils validateNull:dict[@"id"]] isEqualToString:@""] && [dict[@"id"] isEqualToString:Id]) {
            return [ValidateUtils validateNull:dict[@"value"]];
        }
    }
    return @"";
}

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 3;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    if (section == 0) {
        return self.childContentArrayM.count;
    } else if (section == 1) {
            return self.familyContentArrayM.count;
    } else {
        return self.custodyContentArrayM.count;
    }
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    LSInfoCollectTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:KidsLeftAtHomeFoundationInfoCollectCellID forIndexPath:indexPath];
    if (indexPath.section == 0) {
        if ([self.childContentArrayM[indexPath.row] rangeOfString:@"："].length > 0) {
            cell.leftLabel.text = self.childContentArrayM[indexPath.row];
        } else {
            cell.leftLabel.text = @"";
        }
        if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_9] || [self.childContentArrayM[indexPath.row] isEqualToString:string1_21] || [self.childContentArrayM[indexPath.row] isEqualToString:string1_22] || [self.childContentArrayM[indexPath.row] isEqualToString:string1_23] || [self.childContentArrayM[indexPath.row] isEqualToString:string1_24] || [self.childContentArrayM[indexPath.row] isEqualToString:string1_25] || [self.childContentArrayM[indexPath.row] isEqualToString:string1_26]) {
            cell.xingImageView.hidden = true;
        } else {
            cell.xingImageView.hidden = false;
        }
    } else if (indexPath.section == 1) {
        if ([self.familyContentArrayM[indexPath.row] rangeOfString:@"："].length > 0) {
            cell.leftLabel.text = self.familyContentArrayM[indexPath.row];
        } else {
            cell.leftLabel.text = @"";
        }
        if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_1] || [self.familyContentArrayM[indexPath.row] isEqualToString:string2_2] || [self.familyContentArrayM[indexPath.row] isEqualToString:string2_3] || [self.familyContentArrayM[indexPath.row] isEqualToString:string2_4] || [self.familyContentArrayM[indexPath.row] isEqualToString:string2_17] || [self.familyContentArrayM[indexPath.row] isEqualToString:string2_18] || [self.familyContentArrayM[indexPath.row] isEqualToString:string2_19] || [self.familyContentArrayM[indexPath.row] isEqualToString:string2_20] || [self.familyContentArrayM[indexPath.row] isEqualToString:string2_33] || [self.familyContentArrayM[indexPath.row] isEqualToString:string2_34] || [self.familyContentArrayM[indexPath.row] isEqualToString:string2_35] || [self.familyContentArrayM[indexPath.row] isEqualToString:string2_36]) {
            cell.xingImageView.hidden = true;
        } else {
            cell.xingImageView.hidden = false;
        }
    } else {
        cell.leftLabel.text = self.custodyContentArrayM[indexPath.row];
        if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_19] || [self.custodyContentArrayM[indexPath.row] isEqualToString:string3_14] || [self.custodyContentArrayM[indexPath.row] isEqualToString:string3_16]) {
            cell.xingImageView.hidden = true;
        } else {
            cell.xingImageView.hidden = false;
        }
    }
    [cell.leftLabel sizeToFit];
    if (self.isCheck) cell.xingImageView.hidden = true;
    
    for (UIView *subView in cell.contentView.subviews) {
        if ([subView isKindOfClass:UITextField.class] || [subView isKindOfClass:[UITextView class]]) {
            [subView removeFromSuperview];
        }
    }
    
    LSInfoCollectTableViewCell *currentCell = cell;
    if (indexPath.section == 0) {
        if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_1]) {
            [currentCell.contentView addSubview:self.nameTF];
            [self.nameTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_2]) {
            [currentCell.contentView addSubview:self.personalIDCardTF];
            [self.personalIDCardTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_3]) {
            [currentCell.contentView addSubview:self.birthdayTF];
            [self.birthdayTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_4]) {
            [currentCell.contentView addSubview:self.sexTF];
            [self.sexTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_5]) {
            [currentCell.contentView addSubview:self.registerTypeTF];
            [self.registerTypeTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_6]) {
            [currentCell.contentView addSubview:self.nationTF];
            [self.nationTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_7]) {
            [currentCell.contentView addSubview:self.regionCodeTF];
            [self.regionCodeTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_8]) {
            [currentCell.contentView addSubview:self.addressRegisterTV];
            [self.addressRegisterTV mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_9]) {
            [currentCell.contentView addSubview:self.addressTV];
            [self.addressTV mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_10]) {
            [currentCell.contentView addSubview:self.physicalConditionTF];
            [self.physicalConditionTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_11]) {
            [currentCell.contentView addSubview:self.doubtfulDisabilityTypeTF];
            [self.doubtfulDisabilityTypeTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_12]) {
            [currentCell.contentView addSubview:self.disabilitySelectTF];
            [self.disabilitySelectTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_13]) {
            [currentCell.contentView addSubview:self.disabilityLevelTF];
            [self.disabilityLevelTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_14]) {
            [currentCell.contentView addSubview:self.seriousIllnessTypeTF];
            [self.seriousIllnessTypeTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_15]) {
            [currentCell.contentView addSubview:self.reportTypeTF];
            [self.reportTypeTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_16]) {
            [currentCell.contentView addSubview:self.poorFamilyTypeTF];
            [self.poorFamilyTypeTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_17]) {
            [currentCell.contentView addSubview:self.custodyDilemmaTF];
            [self.custodyDilemmaTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_18]) {
            [currentCell.contentView addSubview:self.custodyNobodyTF];
            [self.custodyNobodyTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_19]) {
            [currentCell.contentView addSubview:self.schoolingTF];
            [self.schoolingTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_20]) {
            [currentCell.contentView addSubview:self.lodingTF];
            [self.lodingTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_21]) {
            [currentCell.contentView addSubview:self.otherSpecialTF];
            [self.otherSpecialTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_22]) {
            [currentCell.contentView addSubview:self.otherSpecialOtherTV];
            [self.otherSpecialOtherTV mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_23]) {
            [currentCell.contentView addSubview:self.socialAssistanceTF];
            [self.socialAssistanceTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_24]) {
            [currentCell.contentView addSubview:self.socialAssistanceOtherTV];
            [self.socialAssistanceOtherTV mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_25]) {
            [currentCell.contentView addSubview:self.encroachTF];
            [self.encroachTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_26]) {
            [currentCell.contentView addSubview:self.encroachOtherTV];
            [self.encroachOtherTV mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        }
    } else if (indexPath.section == 1) {
        if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_1]) {
            [currentCell.contentView addSubview:self.grandfatherNameTF];
            [self.grandfatherNameTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_2]) {
            [currentCell.contentView addSubview:self.grandfatherBirthdayTF];
            [self.grandfatherBirthdayTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_3]) {
            [currentCell.contentView addSubview:self.grandmotherNameTF];
            [self.grandmotherNameTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_4]) {
            [currentCell.contentView addSubview:self.grandmotherBirthdayTF];
            [self.grandmotherBirthdayTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_5]) {
            [currentCell.contentView addSubview:self.fatherNameTF];
            [self.fatherNameTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_6]) {
            [currentCell.contentView addSubview:self.fatherIdcardTF];
            [self.fatherIdcardTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_7]) {
            [currentCell.contentView addSubview:self.fatherBirthdayTF];
            [self.fatherBirthdayTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_8]) {
            [currentCell.contentView addSubview:self.fatherTelephoneTF];
            [self.fatherTelephoneTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_9]) {
            [currentCell.contentView addSubview:self.fatherRegisterRegionNameTF];
            [self.fatherRegisterRegionNameTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_10]) {
            [currentCell.contentView addSubview:self.fatherRegisterAddrTV];
            [self.fatherRegisterAddrTV mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_11]) {
            [currentCell.contentView addSubview:self.fatherWorkplaceNameTF];
            [self.fatherWorkplaceNameTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_12]) {
            [currentCell.contentView addSubview:self.fatherWorkerAddrTV];
            [self.fatherWorkerAddrTV mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_13]) {
            [currentCell.contentView addSubview:self.fatherHealthTF];
            [self.fatherHealthTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_14]) {
            [currentCell.contentView addSubview:self.fatherDisTypeTF];
            [self.fatherDisTypeTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_15]) {
            [currentCell.contentView addSubview:self.fatherDisLevelTF];
            [self.fatherDisLevelTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_16]) {
            [currentCell.contentView addSubview:self.fatherSeriousIllnessTypeTF];
            [self.fatherSeriousIllnessTypeTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_17]) {
            [currentCell.contentView addSubview:self.fatherFamilyshipTF];
            [self.fatherFamilyshipTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_18]) {
            [currentCell.contentView addSubview:self.fatherFamilyshipOtherTV];
            [self.fatherFamilyshipOtherTV mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_19]) {
            [currentCell.contentView addSubview:self.fatherOtherSpecialTF];
            [self.fatherOtherSpecialTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_20]) {
            [currentCell.contentView addSubview:self.fatherOtherSpecialOtherTV];
            [self.fatherOtherSpecialOtherTV mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_21]) {
            [currentCell.contentView addSubview:self.motherNameTF];
            [self.motherNameTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_22]) {
            [currentCell.contentView addSubview:self.motherIdcardTF];
            [self.motherIdcardTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_23]) {
            [currentCell.contentView addSubview:self.motherBirthdayTF];
            [self.motherBirthdayTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_24]) {
            [currentCell.contentView addSubview:self.motherTelephoneTF];
            [self.motherTelephoneTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_25]) {
            [currentCell.contentView addSubview:self.motherRegisterRegionNameTF];
            [self.motherRegisterRegionNameTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_26]) {
            [currentCell.contentView addSubview:self.motherRegisterAddrTV];
            [self.motherRegisterAddrTV mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_27]) {
            [currentCell.contentView addSubview:self.motherWorkplaceNameTF];
            [self.motherWorkplaceNameTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_28]) {
            [currentCell.contentView addSubview:self.motherWorkerAddrTV];
            [self.motherWorkerAddrTV mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_29]) {
            [currentCell.contentView addSubview:self.motherHealthTF];
            [self.motherHealthTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_30]) {
            [currentCell.contentView addSubview:self.motherDisTypeTF];
            [self.motherDisTypeTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_31]) {
            [currentCell.contentView addSubview:self.motherDisLevelTF];
            [self.motherDisLevelTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_32]) {
            [currentCell.contentView addSubview:self.motherSeriousIllnessTypeTF];
            [self.motherSeriousIllnessTypeTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_33]) {
            [currentCell.contentView addSubview:self.motherFamilyshipTF];
            [self.motherFamilyshipTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_34]) {
            [currentCell.contentView addSubview:self.motherFamilyshipOtherTV];
            [self.motherFamilyshipOtherTV mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_35]) {
            [currentCell.contentView addSubview:self.motherOtherSpecialTF];
            [self.motherOtherSpecialTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_36]) {
            [currentCell.contentView addSubview:self.motherOtherSpecialOtherTV];
            [self.motherOtherSpecialOtherTV mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        }
    } else {
        if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_1]) {
            [currentCell.contentView addSubview:self.alloutTF];
            [self.alloutTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_2]) {
            [currentCell.contentView addSubview:self.oneoutTF];
            [self.oneoutTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_3]) {
            [currentCell.contentView addSubview:self.whoCantTF];
            [self.whoCantTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_4]) {
            [currentCell.contentView addSubview:self.delegationTF];
            [self.delegationTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_5]) {
            [currentCell.contentView addSubview:self.guardianNameTF];
            [self.guardianNameTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_6]) {
            [currentCell.contentView addSubview:self.guardianTelephoneTF];
            [self.guardianTelephoneTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_7]) {
            [currentCell.contentView addSubview:self.guardianIdcardTF];
            [self.guardianIdcardTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_8]) {
            [currentCell.contentView addSubview:self.guardianAddressTV];
            [self.guardianAddressTV mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_9]) {
            [currentCell.contentView addSubview:self.guardianShipTF];
            [self.guardianShipTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_10]) {
            [currentCell.contentView addSubview:self.guardianTypeTF];
            [self.guardianTypeTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_11]) {
            [currentCell.contentView addSubview:self.guardianPhysicalConditionTF];
            [self.guardianPhysicalConditionTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_12]) {
            [currentCell.contentView addSubview:self.guardianDisabilitySelectTF];
            [self.guardianDisabilitySelectTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_13]) {
            [currentCell.contentView addSubview:self.guardianDisabilityLevelTF];
            [self.guardianDisabilityLevelTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_23]) {
            [currentCell.contentView addSubview:self.guardianSeriousIllnessTypeTF];
            [self.guardianSeriousIllnessTypeTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_14]) {
            [currentCell.contentView addSubview:self.guardianOtherSpecialTF];
            [self.guardianOtherSpecialTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_15]) {
            [currentCell.contentView addSubview:self.guardianScoreTF];
            [self.guardianScoreTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_16]) {
            [currentCell.contentView addSubview:self.salvationConditionTF];
            [self.salvationConditionTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_17]) {
            [currentCell.contentView addSubview:self.responsibilityTF];
            [self.responsibilityTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_18]) {
            [currentCell.contentView addSubview:self.orgPhoneTF];
            [self.orgPhoneTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_19]) {
            [currentCell.contentView addSubview:self.orgTelephoneTF];
            [self.orgTelephoneTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_20]) {
            [currentCell.contentView addSubview:self.institutionalNatureTF];
            [self.institutionalNatureTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_21]) {
            [currentCell.contentView addSubview:self.orgAddressTV];
            [self.orgAddressTV mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        } else if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_22]) {
            [currentCell.contentView addSubview:self.helpProposalTF];
            [self.helpProposalTF mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(currentCell.leftLabel.mas_right).with.offset(12);
                make.right.equalTo(currentCell.contentView.mas_right).with.offset(-15);
                make.top.equalTo(currentCell.contentView.mas_top).with.offset(8);
                make.bottom.equalTo(currentCell.contentView.mas_bottom);
            }];
        }
    }
    return cell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    [tableView deselectRowAtIndexPath:indexPath animated:true];
}

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
    return 44;
}

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
    UIView *sectionHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, 44)];
    sectionHeaderView.backgroundColor = hexColor(FFFFFF);
    UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(15, 0, ScreenWidth-30, 44) andText:self.sectionTitleArray[section] andTextColor:hexColor(333333) andFont:[UIFont fontWithName:@"SourceHanSansCN-Bold" size:14] andTextAlignment:NSTextAlignmentCenter];
    [sectionHeaderView addSubview:titleLabel];
    return sectionHeaderView;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    if (indexPath.section == 0) {
        if ([self.childContentArrayM[indexPath.row] isEqualToString:string1_8] || [self.childContentArrayM[indexPath.row] isEqualToString:string1_9] || [self.childContentArrayM[indexPath.row] isEqualToString:string1_22] || [self.childContentArrayM[indexPath.row] isEqualToString:string1_24] || [self.childContentArrayM[indexPath.row] isEqualToString:string1_26]) {
            return 100;
        }
    } else if (indexPath.section == 1) {
        if ([self.familyContentArrayM[indexPath.row] isEqualToString:string2_10] || [self.familyContentArrayM[indexPath.row] isEqualToString:string2_12] || [self.familyContentArrayM[indexPath.row] isEqualToString:string2_18] || [self.familyContentArrayM[indexPath.row] isEqualToString:string2_20] || [self.familyContentArrayM[indexPath.row] isEqualToString:string2_26] || [self.familyContentArrayM[indexPath.row] isEqualToString:string2_28] || [self.familyContentArrayM[indexPath.row] isEqualToString:string2_34] || [self.familyContentArrayM[indexPath.row] isEqualToString:string2_36]) {
            return 100;
        }
    } else if (indexPath.section == 2) {
        if ([self.custodyContentArrayM[indexPath.row] isEqualToString:string3_8] || [self.custodyContentArrayM[indexPath.row] isEqualToString:string3_21]) {
            return 100;
        }
    }
    return 44;
}

#pragma mark - 弹窗
- (void)showSelectControllerForTextField:(UITextField *)textField WithContentArray:(NSArray *)contentArray completion:(selectedCompleteBlock)completion {
    _selectedCompleteBlock = completion;
    WS
    UIAlertController *alertC = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet];
    for (int i = 0; i < contentArray.count; i++) {
        [alertC addActionTarget:alertC title:contentArray[i] color:NAV_COLOR action:^(UIAlertAction *action) {
            textField.text = [contentArray[i] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];
            if (completion) weakSelf.selectedCompleteBlock(contentArray[i]);
        }];
    }
    [alertC addCancelActionTarget:alertC color:NAV_COLOR title:@"取消"];
    [self presentViewController:alertC animated:true completion:nil];
}

- (void)showDateSelectControllerForTextField:(UITextField *)textField WithTitle:(NSString *)title {
    LSDatePickViewController *alertVC = [LSDatePickViewController alertControllerWithTitle:[NSString stringWithFormat:@"%@\n\n\n\n\n\n\n\n\n\n\n",title] message:nil preferredStyle:UIAlertControllerStyleActionSheet];
    alertVC.datePicker.datePickerMode = UIDatePickerModeDate;
    UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleDefault handler:nil];
    UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
        // 获取当前datePicker上面选择的时间
        NSDate *date = alertVC.datePicker.date;
        //    NSLog(@"-----%@", date);
        // 创建时间格式化工具
        NSDateFormatter *df = [[NSDateFormatter alloc] init];
        df.dateFormat = @"yyyy-MM-dd";
        NSString *str = [df stringFromDate:date];
        textField.text = [NSString stringWithFormat:@"%@",str];
        textField.backgroundColor = UIColor.whiteColor;
    }];
    [alertVC addAction:cancelAction];
    [alertVC addAction:okAction];
    [self presentViewController:alertVC animated:YES completion:nil];
}

- (void)showLocationSelectControllerForTextField:(UITextField *)textField WithTitle:(NSString *)title {
    LSInfoSelectController *locationSelectC = [LSInfoSelectController alertControllerWithTitle:[NSString stringWithFormat:@"%@\n\n\n\n\n\n\n\n\n\n\n",title] message:nil preferredStyle:UIAlertControllerStyleActionSheet];
    UIAlertAction *confirmAction = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
        textField.text = [NSString stringWithFormat:@"%@  %@  %@",locationSelectC.pickerViewSelectedShengString,locationSelectC.pickerViewSelectedShiString,locationSelectC.pickerViewSelectedQuString];
        textField.placeholder = locationSelectC.pickerViewSelectedCode;
    }];
    UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:nil];
    [locationSelectC addAction:confirmAction];
    [locationSelectC addAction:cancelAction];
    [self presentViewController:locationSelectC animated:true completion:nil];
}

- (void)showMultipleSelectViewWithArray:(NSArray *)selectArray forTextfield:(UITextField *)selectTF {
    NSMutableArray *selectArrayM = [[NSMutableArray alloc] initWithArray:selectArray];
    NSArray *selectedArray = @[];
    [selectArrayM removeObjectAtIndex:0];
    if (![selectTF.text isEqualToString:@"请选择"] && ![[ValidateUtils validateNull:selectTF.text] isEqualToString:@""]) {
        selectedArray = [selectTF.text componentsSeparatedByString:@" "];
    }
    WS
    LSMultipleSelectView *selectedView = [[LSMultipleSelectView alloc] initWithSelectObjects:selectArrayM.copy andSelectedObjects:selectedArray didSelectObjects:^(NSArray * _Nonnull selectObjects) {
        if (selectObjects.count > 0) {
            NSMutableString *stringM = [[NSMutableString alloc] initWithString:@""];
            for (NSString *string in selectObjects) {
                [stringM appendFormat:@"%@ ",string];
            }
            selectTF.text = [stringM substringToIndex:stringM.length-1];
            if (selectTF == self.physicalConditionTF) {
                [self rearrangeTableViewSource:self.childContentArrayM withCanJiOrHuanBingArray:selectObjects forTextField:self.physicalConditionTF];
            } else if (selectTF == self.doubtfulDisabilityTypeTF) {
                if (![self.doubtfulDisabilityTypeTF.text isEqualToString:@""] && ![self.doubtfulDisabilityTypeTF.text isEqualToString:@"请选择"]) {
                    if ([self.childContentArrayM containsObject:string1_12]) {
                        [self.childContentArrayM removeObjectsInArray:@[string1_12,string1_13]];
                    }
                }
            } else if (selectTF == self.disabilitySelectTF) {
                if (![self.disabilitySelectTF.text isEqualToString:@""] && ![self.disabilitySelectTF.text isEqualToString:@"请选择"]) {
                    if ([self.childContentArrayM containsObject:string1_11]) {
                        [self.childContentArrayM removeObjectsInArray:@[string1_11]];
                    }
                }
            } else if (selectTF == self.reportTypeTF) {
                if ([selectTF.text rangeOfString:@"困境"].length > 0) {
                    if (![self.childContentArrayM containsObject:string1_18]) {
                        NSInteger index = [self.childContentArrayM indexOfObject:string1_15];
                        [self.childContentArrayM insertObjects:@[string1_16,string1_17,string1_18] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 3)]];
                    }
                } else {
                    [self.childContentArrayM removeObjectsInArray:@[string1_16,string1_17,string1_18]];
                }
            } else if (selectTF == self.otherSpecialTF) {
                if ([selectTF.text rangeOfString:@"其他"].length > 0) {
                    if (![self.childContentArrayM containsObject:string1_22]) {
                        NSInteger index = [self.childContentArrayM indexOfObject:string1_21];
                        [self.childContentArrayM insertObjects:@[string1_22] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
                    }
                } else {
                    [self.childContentArrayM removeObjectsInArray:@[string1_22]];
                }
            } else if (selectTF == self.socialAssistanceTF) {
                if ([selectTF.text rangeOfString:@"其他"].length > 0) {
                    if (![self.childContentArrayM containsObject:string1_24]) {
                        NSInteger index = [self.childContentArrayM indexOfObject:string1_23];
                        [self.childContentArrayM insertObjects:@[string1_24] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
                    }
                } else {
                    [self.childContentArrayM removeObjectsInArray:@[string1_24]];
                }
            } else if (selectTF == self.encroachTF) {
                if ([selectTF.text rangeOfString:@"其他"].length > 0) {
                    if (![self.childContentArrayM containsObject:string1_26]) {
                        NSInteger index = [self.childContentArrayM indexOfObject:string1_25];
                        [self.childContentArrayM insertObjects:@[string1_26] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
                    }
                } else {
                    [self.childContentArrayM removeObjectsInArray:@[string1_26]];
                }
            } else if (selectTF == self.guardianPhysicalConditionTF) {
                [self rearrangeTableViewSource:self.custodyContentArrayM withCanJiOrHuanBingArray:selectObjects forTextField:self.guardianPhysicalConditionTF];
            } else if (selectTF == self.motherHealthTF) {//这里对父母残疾、大病的选择带出带隐列表做判断
                [self rearrangeTableViewSource:self.familyContentArrayM withCanJiOrHuanBingArray:selectObjects forTextField:self.motherHealthTF];
            } else if (selectTF == self.fatherHealthTF) {
                [self rearrangeTableViewSource:self.familyContentArrayM withCanJiOrHuanBingArray:selectObjects forTextField:self.fatherHealthTF];
            } else if (selectTF == self.fatherFamilyshipTF) {
                if ([selectTF.text rangeOfString:@"其他"].length > 0) {//18.20.34.36
                    if (![self.familyContentArrayM containsObject:string2_18]) {
                        NSInteger index = [self.familyContentArrayM indexOfObject:string2_17];
                        [self.familyContentArrayM insertObjects:@[string2_18] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
                    }
                } else {
                    [self.familyContentArrayM removeObjectsInArray:@[string2_18]];
                }
            } else if (selectTF == self.fatherOtherSpecialTF) {
                if ([selectTF.text rangeOfString:@"其他"].length > 0) {//18.20.34.36
                    if (![self.familyContentArrayM containsObject:string2_20]) {
                        NSInteger index = [self.familyContentArrayM indexOfObject:string2_19];
                        [self.familyContentArrayM insertObjects:@[string2_20] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
                    }
                } else {
                    [self.familyContentArrayM removeObjectsInArray:@[string2_20]];
                }
            } else if (selectTF == self.motherFamilyshipTF) {
                if ([selectTF.text rangeOfString:@"其他"].length > 0) {//18.20.34.36
                    if (![self.familyContentArrayM containsObject:string2_34]) {
                        NSInteger index = [self.familyContentArrayM indexOfObject:string2_33];
                        [self.familyContentArrayM insertObjects:@[string2_34] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
                    }
                } else {
                    [self.familyContentArrayM removeObjectsInArray:@[string2_34]];
                }
            } else if (selectTF == self.motherOtherSpecialTF) {
                if ([selectTF.text rangeOfString:@"其他"].length > 0) {//18.20.34.36
                    if (![self.familyContentArrayM containsObject:string2_36]) {
                        NSInteger index = [self.familyContentArrayM indexOfObject:string2_35];
                        [self.familyContentArrayM insertObjects:@[string2_36] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
                    }
                } else {
                    [self.familyContentArrayM removeObjectsInArray:@[string2_36]];
                }
            }
            [self.tableView reloadData];
        } else {
            selectTF.text = @"请选择";
            if (selectTF == self.physicalConditionTF) {
                [self.childContentArrayM removeObjectsInArray:@[string1_11,string1_12,string1_13]];
            } else if (selectTF == self.doubtfulDisabilityTypeTF) {
                if ([self.childContentArrayM containsObject:string1_11]) {
                    NSInteger index = [self.childContentArrayM indexOfObject:string1_11];
                    [self.childContentArrayM insertObjects:@[string1_12,string1_13] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 2)]];
                } else if ([self.childContentArrayM containsObject:string1_10]) {
                    NSInteger index = [self.childContentArrayM indexOfObject:string1_10];
                    [self.childContentArrayM insertObjects:@[string1_12,string1_13] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 2)]];
                }
            } else if (selectTF == self.disabilitySelectTF) {
                NSInteger index = [self.childContentArrayM indexOfObject:string1_10];
                [self.childContentArrayM insertObjects:@[string1_11] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
            } else if (selectTF == self.reportTypeTF) {
                [self.childContentArrayM removeObjectsInArray:@[string1_16,string1_17,string1_18]];
            } else if (selectTF == self.otherSpecialTF) {
                [self.childContentArrayM removeObjectsInArray:@[string1_22]];
            } else if (selectTF == self.socialAssistanceTF) {
                [self.childContentArrayM removeObjectsInArray:@[string1_24]];
            } else if (selectTF == self.encroachTF) {
                [self.childContentArrayM removeObjectsInArray:@[string1_26]];
            } else if (selectTF == self.guardianPhysicalConditionTF) {
                [self.custodyContentArrayM removeObjectsInArray:@[string3_12,string3_13,string3_23]];
            } else if (selectTF == self.fatherFamilyshipTF) {
                [self.familyContentArrayM removeObjectsInArray:@[string2_18]];
            } else if (selectTF == self.fatherOtherSpecialTF) {
                [self.familyContentArrayM removeObjectsInArray:@[string2_20]];
            } else if (selectTF == self.motherFamilyshipTF) {
                [self.familyContentArrayM removeObjectsInArray:@[string2_34]];
            } else if (selectTF == self.motherOtherSpecialTF) {
                [self.familyContentArrayM removeObjectsInArray:@[string2_36]];
            }
            [weakSelf.tableView reloadData];
        }
    }];
    [selectedView show];
}

- (void)rearrangeTableViewSource:(NSMutableArray *)sourceArrayM withCanJiOrHuanBingArray:(NSArray *)array forTextField:(UITextField *)textfield {
    BOOL isCanJin = false;
    BOOL isHuanBing = false;
    for (NSString *string in array) {
        if ([string isEqualToString:@"残疾"]) {
            isCanJin = true;
        } else if ([string isEqualToString:@"患病"]) {
            isHuanBing = true;
        }
    }
    
    if (isCanJin) {
        if (textfield == self.physicalConditionTF) {
            if (![sourceArrayM containsObject:string1_13]) {
                NSInteger index = [sourceArrayM indexOfObject:string1_10];
                [sourceArrayM insertObjects:@[string1_11,string1_12,string1_13] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 3)]];
            }
        } else if (textfield == self.guardianPhysicalConditionTF) {
            if (![sourceArrayM containsObject:string3_13]) {
                NSInteger index = [sourceArrayM indexOfObject:string3_11];
                [sourceArrayM insertObjects:@[string3_12,string3_13] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 2)]];
            }
        } else if (textfield == self.motherHealthTF) {
            if (![sourceArrayM containsObject:string2_31]) {
                NSInteger index = [self.familyContentArrayM indexOfObject:string2_29];
                [sourceArrayM insertObjects:@[string2_30,string2_31] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 2)]];
            }
        } else if (textfield == self.fatherHealthTF) {
            if (![sourceArrayM containsObject:string2_15]) {
                NSInteger index = [self.familyContentArrayM indexOfObject:string2_13];
                [sourceArrayM insertObjects:@[string2_14,string2_15] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 2)]];
            }
        }
    } else {
        if (textfield == self.physicalConditionTF) {
            [sourceArrayM removeObjectsInArray:@[string1_11,string1_12,string1_13]];
        } else if (textfield == self.guardianPhysicalConditionTF) {
            [sourceArrayM removeObjectsInArray:@[string3_12,string3_13]];
        } else if (textfield == self.motherHealthTF) {
            [sourceArrayM removeObjectsInArray:@[string2_30,string2_31]];
        } else if (textfield == self.fatherHealthTF) {
            [sourceArrayM removeObjectsInArray:@[string2_14,string2_15]];
        }
    }
    if (isHuanBing) {
        if (textfield == self.physicalConditionTF) {
            if (![sourceArrayM containsObject:string1_14]) {
                NSInteger index = 0;
                if ([sourceArrayM containsObject:string1_13]) {
                    index = [sourceArrayM indexOfObject:string1_13];
                } else {
                    index = [sourceArrayM indexOfObject:string1_10];
                }
                [sourceArrayM insertObjects:@[string1_14] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
            }
        } else if (textfield == self.guardianPhysicalConditionTF) {
            if (![sourceArrayM containsObject:string3_23]) {
                NSInteger index = 0;
                if ([sourceArrayM containsObject:string3_13]) {
                    index = [sourceArrayM indexOfObject:string3_13];
                } else {
                    index = [sourceArrayM indexOfObject:string3_11];
                }
                [sourceArrayM insertObjects:@[string3_23] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
            }
        } else if (textfield == self.motherHealthTF) {
            if (![sourceArrayM containsObject:string2_32]) {
                NSInteger index = 0;
                if ([sourceArrayM containsObject:string2_31]) {
                    index = [sourceArrayM indexOfObject:string2_31];
                } else {
                    index = [sourceArrayM indexOfObject:string2_29];
                }
                [sourceArrayM insertObjects:@[string2_32] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
            }
        } else if (textfield == self.fatherHealthTF) {
            if (![sourceArrayM containsObject:string2_16]) {
                NSInteger index = 0;
                if ([sourceArrayM containsObject:string2_15]) {
                    index = [sourceArrayM indexOfObject:string2_15];
                } else {
                    index = [sourceArrayM indexOfObject:string2_13];
                }
                [sourceArrayM insertObjects:@[string2_16] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 1)]];
            }
        }
    } else {
        if (textfield == self.physicalConditionTF) {
            [sourceArrayM removeObjectsInArray:@[string1_14]];
        } else if (textfield == self.guardianPhysicalConditionTF) {
            [sourceArrayM removeObjectsInArray:@[string3_23]];
        } else if (textfield == self.motherHealthTF) {
            [sourceArrayM removeObjectsInArray:@[string2_32]];
        } else if (textfield == self.fatherHealthTF) {
            [sourceArrayM removeObjectsInArray:@[string2_16]];
        }
    }
}

- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField {
    if (textField == self.registerTypeTF) {
        if (!self.isCheck) [self showSelectControllerForTextField:self.registerTypeTF WithContentArray:self.registerTypeTFArray completion:nil];
        return false;
    } else if (textField == self.nationTF) {
        if (!self.isCheck) [self showSelectControllerForTextField:self.nationTF WithContentArray:self.nationTFArray completion:nil];
        return false;
    } else if (textField == self.sexTF) {
//        if (!self.isCheck) [self showSelectControllerForTextField:self.sexTF WithContentArray:self.sexTFArray];
        return false;
    } else if (textField == self.birthdayTF) {
//        if (!self.isCheck) [self showDateSelectControllerForTextField:self.birthdayTF WithTitle:@"请选择出生日期"];
        return false;
    } else if (textField == self.regionCodeTF) {
        if (!self.isCheck) [self showLocationSelectControllerForTextField:self.regionCodeTF WithTitle:@"请选择所在地区"];
        return false;
    } else if (textField == self.physicalConditionTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.physicalConditionTFArray forTextfield:self.physicalConditionTF];
        return false;
    } else if (textField == self.reportTypeTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.reportTypeTFArray forTextfield:self.reportTypeTF];
        return false;
    } else if (textField == self.doubtfulDisabilityTypeTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.doubtfulDisabilityTypeTFArray forTextfield:self.doubtfulDisabilityTypeTF];
        return false;
    } else if (textField == self.disabilitySelectTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.disabilitySelectTFArray forTextfield:self.disabilitySelectTF];
        return false;
    } else if (textField == self.disabilityLevelTF) {
        if (!self.isCheck) [self showSelectControllerForTextField:self.disabilityLevelTF WithContentArray:self.disabilityLevelTFArray completion:nil];
        return false;
    } else if (textField == self.seriousIllnessTypeTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.seriousIllnessTypeTFArray forTextfield:self.seriousIllnessTypeTF];
        return false;
    } else if (textField == self.poorFamilyTypeTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.poorFamilyTypeTFArray forTextfield:self.poorFamilyTypeTF];
        return false;
    } else if (textField == self.custodyDilemmaTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.custodyDilemmaTFArray forTextfield:self.custodyDilemmaTF];
        return false;
    } else if (textField == self.custodyNobodyTF) {
        if (!self.isCheck) [self showSelectControllerForTextField:self.custodyNobodyTF WithContentArray:self.custodyNobodyTFArray completion:nil];
        return false;
    } else if (textField == self.schoolingTF) {
        if (!self.isCheck) [self showSelectControllerForTextField:self.schoolingTF WithContentArray:self.schoolingTFArray completion:nil];
        return false;
    } else if (textField == self.lodingTF) {
        if (!self.isCheck) [self showSelectControllerForTextField:self.lodingTF WithContentArray:self.lodingTFArray completion:nil];
        return false;
    } else if (textField == self.otherSpecialTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.otherSpecialTFArray forTextfield:self.otherSpecialTF];
        return false;
    } else if (textField == self.socialAssistanceTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.socialAssistanceTFArray forTextfield:self.socialAssistanceTF];
        return false;
    } else if (textField == self.encroachTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.encroachTFArray forTextfield:self.encroachTF];
        return false;
    }
    
    
    else if (textField == self.grandfatherBirthdayTF) {
        if (!self.isCheck) [self showDateSelectControllerForTextField:self.grandfatherBirthdayTF WithTitle:@"请选择祖父出生日期"];
        return false;
    } else if (textField == self.grandmotherBirthdayTF) {
        if (!self.isCheck) [self showDateSelectControllerForTextField:self.grandmotherBirthdayTF WithTitle:@"请选择祖母出生日期"];
        return false;
    } else if (textField == self.fatherBirthdayTF) {
        return false;
    } else if (textField == self.fatherRegisterRegionNameTF) {
        if (!self.isCheck) [self showLocationSelectControllerForTextField:self.fatherRegisterRegionNameTF WithTitle:@"请选择父亲户籍所在地"];
        return false;
    } else if (textField == self.fatherWorkplaceNameTF) {
        if (!self.isCheck) [self showLocationSelectControllerForTextField:self.fatherWorkplaceNameTF WithTitle:@"请选择父亲务工地"];
        return false;
    } else if (textField == self.fatherHealthTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.fatherHealthTFArray forTextfield:self.fatherHealthTF];
        return false;
    } else if (textField == self.fatherDisTypeTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.fatherDisTypeTFArray forTextfield:self.fatherDisTypeTF];
        return false;
    } else if (textField == self.fatherDisLevelTF) {
        if (!self.isCheck) [self showSelectControllerForTextField:self.fatherDisLevelTF WithContentArray:self.fatherDisLevelTFArray completion:nil];
        return false;
    } else if (textField == self.fatherSeriousIllnessTypeTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.fatherSeriousIllnessTypeTFArray forTextfield:self.fatherSeriousIllnessTypeTF];
        return false;
    } else if (textField == self.fatherFamilyshipTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.fatherFamilyshipTFArray forTextfield:self.fatherFamilyshipTF];
        return false;
    } else if (textField == self.fatherOtherSpecialTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.fatherOtherSpecialTFArray forTextfield:self.fatherOtherSpecialTF];
        return false;
    } else if (textField == self.motherBirthdayTF) {
        return false;
    } else if (textField == self.motherRegisterRegionNameTF) {
        if (!self.isCheck) [self showLocationSelectControllerForTextField:self.motherRegisterRegionNameTF WithTitle:@"请选择母亲户籍所在地"];
        return false;
    } else if (textField == self.motherWorkplaceNameTF) {
        if (!self.isCheck) [self showLocationSelectControllerForTextField:self.motherWorkplaceNameTF WithTitle:@"请选择母亲务工地"];
        return false;
    } else if (textField == self.motherHealthTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.motherHealthTFArray forTextfield:self.motherHealthTF];
        return false;
    } else if (textField == self.motherDisTypeTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.motherDisTypeTFArray forTextfield:self.motherDisTypeTF];
        return false;
    } else if (textField == self.motherDisLevelTF) {
        if (!self.isCheck) [self showSelectControllerForTextField:self.motherDisLevelTF WithContentArray:self.motherDisLevelTFArray completion:nil];
        return false;
    } else if (textField == self.motherSeriousIllnessTypeTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.motherSeriousIllnessTypeTFArray forTextfield:self.motherSeriousIllnessTypeTF];
        return false;
    } else if (textField == self.motherFamilyshipTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.motherFamilyshipTFArray forTextfield:self.motherFamilyshipTF];
        return false;
    } else if (textField == self.motherOtherSpecialTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.motherOtherSpecialTFArray forTextfield:self.motherOtherSpecialTF];
        return false;
    }
    
    
    else if (textField == self.alloutTF) {
//        if (!self.isCheck) [self showSelectControllerForTextField:self.alloutTF WithContentArray:self.alloutTFArray];
        if (!self.isCheck) {
            [self showSelectControllerForTextField:self.alloutTF WithContentArray:self.alloutTFArray completion:^(NSString * _Nonnull selectedString) {
                if ([selectedString isEqualToString:@"是"]) {
                    [self.custodyContentArrayM removeObjectsInArray:@[string3_2,string3_3]];
                } else {
                    if ([self.oneoutTF.text isEqualToString:@"是"]) {
                        if (![self.custodyContentArrayM containsObject:string3_3]) {
                            [self.custodyContentArrayM insertObjects:@[string3_2,string3_3] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(1, 2)]];
                        }
                    } else {
                        [self.custodyContentArrayM insertObjects:@[string3_2] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(1, 1)]];
                    }
                }
                [self.tableView reloadData];
            }];
        }
        return false;
    } else if (textField == self.oneoutTF) {
        if (!self.isCheck) [self showSelectControllerForTextField:self.oneoutTF WithContentArray:self.oneoutTFArray completion:^(NSString * _Nonnull selectedString) {
            if ([selectedString isEqualToString:@"是"]) {
                if (![self.custodyContentArrayM containsObject:string3_3]) {
                    [self.custodyContentArrayM insertObjects:@[string3_3] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(2, 1)]];
                }
            } else {
                [self.custodyContentArrayM removeObjectsInArray:@[string3_3]];
            }
            [self.tableView reloadData];
        }];
        return false;
    } else if (textField == self.whoCantTF) {
        if (!self.isCheck) [self showSelectControllerForTextField:self.whoCantTF WithContentArray:self.whoCantTFArray completion:nil];
        return false;
    } else if (textField == self.delegationTF) {
        if (!self.isCheck) [self showSelectControllerForTextField:self.delegationTF WithContentArray:self.delegationTFArray completion:^(NSString * _Nonnull selectedString) {
            if ([selectedString isEqualToString:@"是"]) {
                if (![self.custodyContentArrayM containsObject:string3_14]) {
                    NSInteger index = [self.custodyContentArrayM indexOfObject:string3_4];
                    [self.custodyContentArrayM insertObjects:@[string3_5,string3_6,string3_7,string3_8,string3_9,string3_10,string3_11,string3_14] atIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(index+1, 8)]];
                    NSArray *selectObjects = [self.guardianPhysicalConditionTF.text componentsSeparatedByString:@" "];
                    [self rearrangeTableViewSource:self.custodyContentArrayM withCanJiOrHuanBingArray:selectObjects forTextField:self.guardianPhysicalConditionTF];
                }
            } else {
                [self.custodyContentArrayM removeObjectsInArray:@[string3_5,string3_6,string3_7,string3_8,string3_9,string3_10,string3_11,string3_12,string3_13,string3_23,string3_14]];
            }
            [self.tableView reloadData];
        }];
        return false;
    } else if (textField == self.guardianShipTF) {
        if (!self.isCheck) [self showSelectControllerForTextField:self.guardianShipTF WithContentArray:self.guardianShipTFArray completion:nil];
        return false;
    } else if (textField == self.guardianTypeTF) {
        if (!self.isCheck) [self showSelectControllerForTextField:self.guardianTypeTF WithContentArray:self.guardianTypeTFArray completion:nil];
        return false;
    } else if (textField == self.guardianPhysicalConditionTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.guardianPhysicalConditionTFArray forTextfield:self.guardianPhysicalConditionTF];
        return false;
    } else if (textField == self.guardianDisabilitySelectTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.guardianDisabilitySelectTFArray forTextfield:self.guardianDisabilitySelectTF];
        return false;
    } else if (textField == self.guardianDisabilityLevelTF) {
        if (!self.isCheck) [self showSelectControllerForTextField:self.guardianDisabilityLevelTF WithContentArray:self.guardianDisabilityLevelTFArray completion:nil];
        return false;
    } else if (textField == self.guardianSeriousIllnessTypeTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.guardianSeriousIllnessTypeTFArray forTextfield:self.guardianSeriousIllnessTypeTF];
        return false;
    } else if (textField == self.guardianOtherSpecialTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.guardianOtherSpecialTFArray forTextfield:self.guardianOtherSpecialTF];
        return false;
    } else if (textField == self.guardianScoreTF) {
        if (!self.isCheck) [self showSelectControllerForTextField:self.guardianScoreTF WithContentArray:self.guardianScoreTFArray completion:nil];
        return false;
    } else if (textField == self.salvationConditionTF) {
        if (!self.isCheck) [self showMultipleSelectViewWithArray:self.salvationConditionTFArray forTextfield:self.salvationConditionTF];
        return false;
    } else if (textField == self.institutionalNatureTF) {
        if (!self.isCheck) [self showSelectControllerForTextField:self.institutionalNatureTF WithContentArray:self.institutionalNatureTFArray completion:nil];
        return false;
    } else if (textField == self.helpProposalTF) {
        if (!self.isCheck) [self showSelectControllerForTextField:self.helpProposalTF WithContentArray:self.helpProposalTFArray completion:nil];
        return false;
    }

    if (self.isCheck) {
        return false;
    } else {
        return true;
    }
}

- (BOOL)textFieldShouldEndEditing:(UITextField *)textField {
    if (textField == self.personalIDCardTF) {
        if ([textField.text isEqualToString:@""]) {
            return true;
        } else if (![ValidateUtils validateIDCardNumber:textField.text]) {
            [MBProgressHUD showTipMessageInWindow:@"身份证输入有误"];
            textField.text = @"";
        } else if (![ValidateUtils validateIDCardNumber:textField.text]) {
            [MBProgressHUD showTipMessageInWindow:@"身份证号填写有误"];
            textField.text = @"";
        } else if ([ValidateUtils getPersonAgeFromIdCard:textField.text] > 16) {
            [MBProgressHUD showTipMessageInWindow:@"儿童年龄不可大于16周岁"];
            textField.text = @"";
        } else if (![[ValidateUtils validateNull:self.fatherIdcardTF.text] isEqualToString:@""] && [self.fatherIdcardTF.text isEqualToString:self.personalIDCardTF.text]) {
            [MBProgressHUD showTipMessageInWindow:@"儿童身份证号与父亲身份证号不可一致"];
            textField.text = @"";
        } else if (![[ValidateUtils validateNull:self.motherIdcardTF.text] isEqualToString:@""] && [self.motherIdcardTF.text isEqualToString:self.personalIDCardTF.text]) {
            [MBProgressHUD showTipMessageInWindow:@"儿童身份证号与母亲身份证号不可一致"];
            textField.text = @"";
        } else {
            //截取身份证中出行人出生日期中的年、月、日
            NSString *personYear = [textField.text substringWithRange:NSMakeRange(6, 4)];
            NSString *personMonth = [textField.text substringWithRange:NSMakeRange(10, 2)];
            NSString *personDay = [textField.text substringWithRange:NSMakeRange(12, 2)];
            NSMutableString *birthdayString = [[NSMutableString alloc] initWithString:personYear];
            [birthdayString appendFormat:@"-%@",personMonth];
            [birthdayString appendFormat:@"-%@",personDay];
            self.birthdayTF.text = birthdayString;
            //获取身份证号中的性别
            NSInteger gender = [ValidateUtils getGenderFromIdCard:textField.text];
            if (gender == 2) {//女
                self.sexTF.text = @"女";
            } else {
                self.sexTF.text = @"男";
            }
        }
    } else if (textField == self.fatherIdcardTF) {
        if ([textField.text isEqualToString:@""]) {
            return true;
        } else if (![ValidateUtils validateIDCardNumber:textField.text]) {
            [MBProgressHUD showTipMessageInWindow:@"身份证输入有误"];
            textField.text = @"";
        } else if (![[ValidateUtils validateNull:self.personalIDCardTF.text] isEqualToString:@""] && [self.personalIDCardTF.text isEqualToString:self.fatherIdcardTF.text]) {
            [MBProgressHUD showTipMessageInWindow:@"父亲身份证号与儿童身份证号不可一致"];
            textField.text = @"";
        } else if (![[ValidateUtils validateNull:self.motherIdcardTF.text] isEqualToString:@""] && [self.motherIdcardTF.text isEqualToString:self.fatherIdcardTF.text]) {
            [MBProgressHUD showTipMessageInWindow:@"父亲身份证号与母亲身份证号不可一致"];
            textField.text = @"";
        } else {
            //截取身份证中出行人出生日期中的年、月、日
            NSString *personYear = [textField.text substringWithRange:NSMakeRange(6, 4)];
            NSString *personMonth = [textField.text substringWithRange:NSMakeRange(10, 2)];
            NSString *personDay = [textField.text substringWithRange:NSMakeRange(12, 2)];
            NSMutableString *birthdayString = [[NSMutableString alloc] initWithString:personYear];
            [birthdayString appendFormat:@"-%@",personMonth];
            [birthdayString appendFormat:@"-%@",personDay];
            self.fatherBirthdayTF.text = birthdayString;
        }
    } else if (textField == self.motherIdcardTF) {
        if ([textField.text isEqualToString:@""]) {
            return true;
        } else if (![ValidateUtils validateIDCardNumber:textField.text]) {
            [MBProgressHUD showTipMessageInWindow:@"身份证输入有误"];
            textField.text = @"";
        } else if (![[ValidateUtils validateNull:self.personalIDCardTF.text] isEqualToString:@""] && [self.personalIDCardTF.text isEqualToString:self.motherIdcardTF.text]) {
            [MBProgressHUD showTipMessageInWindow:@"母亲身份证号与儿童身份证号不可一致"];
            textField.text = @"";
        } else if (![[ValidateUtils validateNull:self.fatherIdcardTF.text] isEqualToString:@""] && [self.fatherIdcardTF.text isEqualToString:self.motherIdcardTF.text]) {
            [MBProgressHUD showTipMessageInWindow:@"母亲身份证号与父亲身份证号不可一致"];
            textField.text = @"";
        } else {
            //截取身份证中出行人出生日期中的年、月、日
            NSString *personYear = [textField.text substringWithRange:NSMakeRange(6, 4)];
            NSString *personMonth = [textField.text substringWithRange:NSMakeRange(10, 2)];
            NSString *personDay = [textField.text substringWithRange:NSMakeRange(12, 2)];
            NSMutableString *birthdayString = [[NSMutableString alloc] initWithString:personYear];
            [birthdayString appendFormat:@"-%@",personMonth];
            [birthdayString appendFormat:@"-%@",personDay];
            self.motherBirthdayTF.text = birthdayString;
        }
    } else if (textField == self.orgPhoneTF) {
        if ([textField.text isEqualToString:@""]) {
            return true;
        } else if (![ValidateUtils validateMobile:textField.text]) {
            [MBProgressHUD showTipMessageInWindow:@"联系电话输入有误"];
            textField.text = @"";
        }
    } else if (textField == self.orgTelephoneTF) {
        if ([textField.text isEqualToString:@""]) {
            return true;
        } else if (![ValidateUtils validateMobile:textField.text]) {
            [MBProgressHUD showTipMessageInWindow:@"固定电话输入有误"];
            textField.text = @"";
        }
    } else if (textField == self.guardianTelephoneTF) {
        if ([textField.text isEqualToString:@""]) {
            return true;
        } else if (![ValidateUtils validateMobile:textField.text]) {
            [MBProgressHUD showTipMessageInWindow:@"监护人电话输入有误"];
            textField.text = @"";
        }
    } else if (textField == self.fatherTelephoneTF) {
        if ([textField.text isEqualToString:@""]) {
            return true;
        } else if (![ValidateUtils validateMobile:textField.text]) {
            [MBProgressHUD showTipMessageInWindow:@"父亲电话输入有误"];
            textField.text = @"";
        }
    } else if (textField == self.motherTelephoneTF) {
        if ([textField.text isEqualToString:@""]) {
            return true;
        } else if (![ValidateUtils validateMobile:textField.text]) {
            [MBProgressHUD showTipMessageInWindow:@"母亲电话输入有误"];
            textField.text = @"";
        }
    } else if (textField == self.guardianIdcardTF) {
        if ([textField.text isEqualToString:@""]) {
            return true;
        } else if (![ValidateUtils validateIDCardNumber:textField.text]) {
            [MBProgressHUD showTipMessageInWindow:@"监护人身份证号输入有误"];
            textField.text = @"";
        }
    }
    return true;
}

//设置文本框只能输入数字
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
    if (string.length == 0 ||  [string isEqualToString:@""]) return true;// 如果是删除字符，肯定是要通过的
    //如果是限制只能输入数字的文本框
    if (textField == self.personalIDCardTF || textField == self.fatherIdcardTF || textField == self.motherIdcardTF || textField == self.guardianIdcardTF) {
        if (![self validateIDCardNumber:string]) {
            return false;
        }
    }
    if (textField == self.orgPhoneTF || textField == self.orgTelephoneTF || textField == self.guardianTelephoneTF) {
        if (![self validateNumber:string]) {
            return false;
        }
    }
    //否则返回yes,不限制其他textfield
    if (range.length == 1 && string.length == 0) {
        return YES;
    } else {
        //否则返回yes,不限制其他textfield
        if (textField == self.nameTF && textField.text.length >= 16) {
            textField.text = [textField.text substringToIndex:16];
            return NO;
        } else if (textField == self.personalIDCardTF && textField.text.length >= 18) {
            textField.text = [textField.text substringToIndex:18];
            return NO;
        } else if (textField == self.grandfatherNameTF && textField.text.length >= 16) {
            textField.text = [textField.text substringToIndex:16];
            return NO;
        } else if (textField == self.grandmotherNameTF && textField.text.length >= 16) {
            textField.text = [textField.text substringToIndex:16];
            return NO;
        } else if (textField == self.fatherTelephoneTF && textField.text.length >= 11) {
            textField.text = [textField.text substringToIndex:11];
            return NO;
        } else if (textField == self.fatherIdcardTF && textField.text.length >= 18) {
            textField.text = [textField.text substringToIndex:18];
            return NO;
        } else if (textField == self.motherNameTF && textField.text.length >= 16) {
            textField.text = [textField.text substringToIndex:16];
            return NO;
        } else if (textField == self.motherTelephoneTF && textField.text.length >= 11) {
            textField.text = [textField.text substringToIndex:11];
            return NO;
        } else if (textField == self.motherIdcardTF && textField.text.length >= 18) {
            textField.text = [textField.text substringToIndex:18];
            return NO;
        } else if (textField == self.responsibilityTF && textField.text.length >= 16) {
            textField.text = [textField.text substringToIndex:16];
            return NO;
        } else if (textField == self.guardianNameTF && textField.text.length >= 16) {
            textField.text = [textField.text substringToIndex:16];
            return NO;
        } else if (textField == self.guardianTelephoneTF && textField.text.length >= 11) {
            textField.text = [textField.text substringToIndex:11];
            return NO;
        } else if (textField == self.guardianIdcardTF && textField.text.length >= 18) {
            textField.text = [textField.text substringToIndex:18];
            return NO;
        } else if (textField == self.orgPhoneTF && textField.text.length >= 11) {
            textField.text = [textField.text substringToIndex:11];
            return NO;
        } else if (textField == self.orgTelephoneTF && textField.text.length >= 12) {
            textField.text = [textField.text substringToIndex:12];
            return NO;
        }
    }
    return YES;
}

// 在这里写UITextView的代理方法来限制输入长度
- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text {
    //判断加上输入的字符，是否超过界限specialityTF  experienceTF
    NSString *str = [NSString stringWithFormat:@"%@%@", textView.text, text];
    NSInteger MaxLength = 0;
    if (textView == self.addressRegisterTV || textView == self.addressTV) {
        MaxLength = 80;
    } else if (textView == self.fatherRegisterAddrTV || textView == self.fatherWorkerAddrTV || textView == self.motherRegisterAddrTV || textView == self.fatherWorkerAddrTV || textView == self.otherSpecialOtherTV || textView == self.socialAssistanceOtherTV || textView == self.encroachOtherTV || textView == self.fatherFamilyshipOtherTV || textView == self.fatherOtherSpecialOtherTV || textView == self.motherFamilyshipOtherTV || textView == self.motherOtherSpecialOtherTV) {
        MaxLength = 256;
    } else if (textView == self.guardianAddressTV) {
        MaxLength = 30;
    } else {
        MaxLength = 50;
    }
    if (str.length > MaxLength) {
        NSRange rangeIndex = [str rangeOfComposedCharacterSequenceAtIndex:MaxLength];
        if (rangeIndex.length == 1) {//字数超限
            textView.text = [str substringToIndex:MaxLength];
        }else{
            NSRange rangeRange = [str rangeOfComposedCharacterSequencesForRange:NSMakeRange(0, MaxLength)];
            textView.text = [str substringWithRange:rangeRange];
        }
        return NO;
    }
    return YES;
}

- (void)textViewDidChange:(UITextView *)textView {
    if ((textView == self.addressRegisterTV || textView == self.addressTV) && textView.text.length > 79) textView.text = [textView.text substringToIndex:80];
    if ((textView == self.fatherRegisterAddrTV || textView == self.fatherWorkerAddrTV || textView == self.motherRegisterAddrTV || textView == self.fatherWorkerAddrTV || textView == self.otherSpecialOtherTV || textView == self.socialAssistanceOtherTV || textView == self.encroachOtherTV || textView == self.fatherFamilyshipOtherTV || textView == self.fatherOtherSpecialOtherTV || textView == self.motherFamilyshipOtherTV || textView == self.motherOtherSpecialOtherTV) && textView.text.length > 255) textView.text = [textView.text substringToIndex:256];
    if (textView == self.guardianAddressTV && textView.text.length > 29) [textView.text substringToIndex:30];
    if (textView == self.orgAddressTV && textView.text.length > 49) textView.text = [textView.text substringToIndex:50];
}

- (BOOL)validateNumber:(NSString*)number {
    BOOL res =YES;
    NSCharacterSet* tmpSet = [NSCharacterSet characterSetWithCharactersInString:@"0123456789"];
    int i =0;
    while (i < number.length) {
        NSString * string = [number substringWithRange:NSMakeRange(i,1)];
        NSRange range = [string rangeOfCharacterFromSet:tmpSet];
        if (range.length ==0) {
            res =NO;
            break;
        }
        i++;
    }
    return res;
}

- (BOOL)validateIDCardNumber:(NSString*)number {
    BOOL res =YES;
    NSCharacterSet* tmpSet = [NSCharacterSet characterSetWithCharactersInString:@"0123456789Xx"];
    int i =0;
    while (i < number.length) {
        NSString * string = [number substringWithRange:NSMakeRange(i,1)];
        NSRange range = [string rangeOfCharacterFromSet:tmpSet];
        if (range.length ==0) {
            res =NO;
            break;
        }
        i++;
    }
    return res;
}

#pragma mark - 留守儿童基本信息选择信息
- (NSArray *)registerTypeTFArray {
    if (!_registerTypeTFArray) {
        _registerTypeTFArray = @[@"农村户口",@"城镇户口",@"无户口"];
    }
    return _registerTypeTFArray;
}
- (NSArray *)nationTFArray {
    if (!_nationTFArray) {
        _nationTFArray = @[@"汉族", @"壮族", @"回族", @"苗族", @"维吾尔族", @"土家族", @"彝族", @"藏族", @"布依族", @"朝鲜族", @"蒙古族", @"满族",@"侗族", @"瑶族", @"白族", @"哈尼族", @"哈萨克族", @"黎族", @"傣族", @"畲族", @"傈僳族",@"仡佬族",@"东乡族", @"高山族", @"拉祜族", @"水族", @"佤族",  @"纳西族",@"羌族", @"土族",@"仫佬族", @"锡伯族", @"柯尔克孜族",@"达斡尔族",@"景颇族",@"毛南族",@"撒拉族", @"布朗族", @"塔吉克族", @"阿昌族", @"普米族",@"鄂温克族", @"怒族",@"京族",  @"基诺族",@"德昂族", @"保安族",@"俄罗斯族", @"裕固族",@"乌孜别克族", @"门巴族",@"鄂伦春族",@"独龙族", @"塔塔尔族", @"赫哲族",@"珞巴族"];
    }
    return _nationTFArray;
}
- (NSArray *)sexTFArray {
    if (!_sexTFArray) {
        _sexTFArray = @[@"男",@"女"];
    }
    return _sexTFArray;
}
- (NSArray *)physicalConditionTFArray {
    if (!_physicalConditionTFArray) {
        _physicalConditionTFArray = @[@"健康",@"残疾",@"患病"];
    }
    return _physicalConditionTFArray;
}
- (NSArray *)doubtfulDisabilityTypeTFArray {
    if (!_doubtfulDisabilityTypeTFArray) {
        _doubtfulDisabilityTypeTFArray = @[@"疑似精神残疾",@"疑似智力残疾",@"疑似肢体残疾",@"疑似语言残疾",@"疑似听力残疾",@"疑似视力残疾"];
    }
    return _doubtfulDisabilityTypeTFArray;
}
- (NSArray *)disabilitySelectTFArray {
    if (!_disabilitySelectTFArray) {
        _disabilitySelectTFArray = @[@"视力残疾",@"听力残疾",@"语言残疾",@"肢体残疾",@"智力残疾",@"精神残疾",@"多重残疾"];
    }
    return _disabilitySelectTFArray;
}
- (NSArray *)disabilityLevelTFArray {
    if (!_disabilityLevelTFArray) {
        _disabilityLevelTFArray = @[@"一级",@"二级",@"三级",@"四级"];
    }
    return _disabilityLevelTFArray;
}
- (NSArray *)seriousIllnessTypeTFArray {
    if (!_seriousIllnessTypeTFArray) {
        _seriousIllnessTypeTFArray = @[@"其他一年内治疗支出超过大病保险给付线的疾病",@"类风湿性关节炎",@"肾炎",@"关节病(髋、膝)",@"地中海贫血",@"肾病综合症",@"慢性阻塞性肺气肿",@"白血病",@"脑血管病",@"先天性心脏病"];
    }
    return _seriousIllnessTypeTFArray;
}
- (NSArray *)reportTypeTFArray {
    if (!_reportTypeTFArray) {
        _reportTypeTFArray = @[@"困境",@"留守"];
    }
    return _reportTypeTFArray;
}
- (NSArray *)poorFamilyTypeTFArray {
    if (!_poorFamilyTypeTFArray) {
        _poorFamilyTypeTFArray = @[@"低保家庭",@"建档立卡",@"特困供养",@"无"];
    }
    return _poorFamilyTypeTFArray;
}
- (NSArray *)custodyDilemmaTFArray {
    if (!_custodyDilemmaTFArray) {
        _custodyDilemmaTFArray = @[@"无人监护",@"父或母无监护能力",@"受委托人监护能力不足",@"无"];
    }
    return _custodyDilemmaTFArray;
}
- (NSArray *)custodyNobodyTFArray {
    if (!_custodyNobodyTFArray) {
        _custodyNobodyTFArray = @[@"A、父母双方服刑在押或强制戒毒（一年以上，下同）、失踪（2年以上、下同）",
                                  @"B、一方死亡或失踪、另一方服刑在押或强制戒毒",
                                  @"C、父母双方重病（患重病罕见病、需长期治疗，下同）或重残（2级以上，下同）",
                                  @"D、父母一方患重病或重残、；另一方死亡、服刑在押或强制戒毒",
                                  @"无"];
    }
    return _custodyNobodyTFArray;
}
- (NSArray *)schoolingTFArray {
    if (!_schoolingTFArray) {
        _schoolingTFArray = @[@"未入园",@"幼儿园",@"小学",@"初中",@"高中",@"中职",@"辍学",@"不在学"];
    }
    return _schoolingTFArray;
}
- (NSArray *)lodingTFArray {
    if (!_lodingTFArray) {
        _lodingTFArray = @[@"否",@"是"];
    }
    return _lodingTFArray;
}
- (NSArray *)otherSpecialTFArray {
    if (!_otherSpecialTFArray) {
        _otherSpecialTFArray = @[@"轻微涉法",@"吸毒",@"酗酒",@"流浪乞讨",@"其他"];
    }
    return _otherSpecialTFArray;
}
- (NSArray *)socialAssistanceTFArray {
    if (!_socialAssistanceTFArray) {
        _socialAssistanceTFArray = @[@"建档立卡贫困户",@"最低生活保障",@"特困供养",@"临时救助",@"医疗救助",@"住房救助",@"困难残疾人生活补助",@"重度残疾人生活补助",@"孤儿津贴",@"其他"];
    }
    return _socialAssistanceTFArray;
}
- (NSArray *)encroachTFArray {
    if (!_encroachTFArray) {
        _encroachTFArray = @[@"监护人不履行监护责任",@"遭受监护人身体暴力",@"遭受监护人精神暴力",@"遭受监护人性侵",@"被监护人胁迫。诱骗，利用非法牟利",@"其他"];
    }
    return _encroachTFArray;
}
#pragma mark - 留守儿童家庭情况选择信息
- (NSArray *)fatherHealthTFArray {
    if (!_fatherHealthTFArray) {
        _fatherHealthTFArray = @[@"健康",@"残疾",@"患病"];
    }
    return _fatherHealthTFArray;
}
- (NSArray *)fatherDisTypeTFArray {
    if (!_fatherDisTypeTFArray) {
        _fatherDisTypeTFArray = @[@"视力残疾",@"听力残疾",@"语言残疾",@"肢体残疾",@"智力残疾",@"精神残疾",@"多重残疾"];
    }
    return _fatherDisTypeTFArray;
}
- (NSArray *)fatherDisLevelTFArray {
    if (!_fatherDisLevelTFArray) {
        _fatherDisLevelTFArray = @[@"一级",@"二级",@"三级",@"四级"];
    }
    return _fatherDisLevelTFArray;
}
- (NSArray *)fatherSeriousIllnessTypeTFArray {
    if (!_fatherSeriousIllnessTypeTFArray) {
        _fatherSeriousIllnessTypeTFArray = @[];
    }
    return _fatherSeriousIllnessTypeTFArray;
}
- (NSArray *)fatherFamilyshipTFArray {
    if (!_fatherFamilyshipTFArray) {
        _fatherFamilyshipTFArray = @[@"打工收入",@"种养殖业",@"政府救助",@"朋友接济",@"其他"];
    }
    return _fatherFamilyshipTFArray;
}
- (NSArray *)fatherOtherSpecialTFArray {
    if (!_fatherOtherSpecialTFArray) {
        _fatherOtherSpecialTFArray = @[@"死亡",@"失踪",@"失联",@"服刑",@"强制戒毒",@"其他"];
    }
    return _fatherOtherSpecialTFArray;
}
- (NSArray *)motherHealthTFArray {
    if (!_motherHealthTFArray) {
        _motherHealthTFArray = @[@"健康",@"残疾",@"患病"];
    }
    return _motherHealthTFArray;
}
- (NSArray *)motherDisTypeTFArray {
    if (!_motherDisTypeTFArray) {
        _motherDisTypeTFArray = @[@"视力残疾",@"听力残疾",@"语言残疾",@"肢体残疾",@"智力残疾",@"精神残疾",@"多重残疾"];
    }
    return _motherDisTypeTFArray;
}
- (NSArray *)motherDisLevelTFArray {
    if (!_motherDisLevelTFArray) {
        _motherDisLevelTFArray = @[@"一级",@"二级",@"三级",@"四级"];
    }
    return _motherDisLevelTFArray;
}
- (NSArray *)motherSeriousIllnessTypeTFArray {
    if (!_motherSeriousIllnessTypeTFArray) {
        _motherSeriousIllnessTypeTFArray = @[];
    }
    return _motherSeriousIllnessTypeTFArray;
}
- (NSArray *)motherFamilyshipTFArray {
    if (!_motherFamilyshipTFArray) {
        _motherFamilyshipTFArray = @[@"打工收入",@"种养殖业",@"政府救助",@"朋友接济",@"其他"];
    }
    return _motherFamilyshipTFArray;
}
- (NSArray *)motherOtherSpecialTFArray {
    if (!_motherOtherSpecialTFArray) {
        _motherOtherSpecialTFArray = @[@"死亡",@"失踪",@"失联",@"服刑",@"强制戒毒",@"其他"];
    }
    return _motherOtherSpecialTFArray;
}
#pragma mark - 实际监护情况选择信息
- (NSArray *)alloutTFArray {
    if (!_alloutTFArray) {
        _alloutTFArray = @[@"否",@"是"];
    }
    return _alloutTFArray;
}
- (NSArray *)oneoutTFArray {
    if (!_oneoutTFArray) {
        _oneoutTFArray = @[@"否",@"是"];
    }
    return _oneoutTFArray;
}
- (NSArray *)whoCantTFArray {
    if (!_whoCantTFArray) {
        _whoCantTFArray = @[@"母亲",@"父亲"];
    }
    return _whoCantTFArray;
}
- (NSArray *)delegationTFArray {
    if (!_delegationTFArray) {
        _delegationTFArray = @[@"否",@"是"];
    }
    return _delegationTFArray;
}
- (NSArray *)guardianShipTFArray {
    if (!_guardianShipTFArray) {
        _guardianShipTFArray = @[@"其他",@"其他近亲属",@"兄弟姐妹",@"(外)祖父母"];
    }
    return _guardianShipTFArray;
}
- (NSArray *)guardianTypeTFArray {
    if (!_guardianTypeTFArray) {
        _guardianTypeTFArray = @[@"受委托人监护能力不足",@"父或母无监护能力",@"无人监护"];
    }
    return _guardianTypeTFArray;
}
- (NSArray *)guardianPhysicalConditionTFArray {
    if (!_guardianPhysicalConditionTFArray) {
        _guardianPhysicalConditionTFArray = @[@"患病",@"残疾",@"健康"];
    }
    return _guardianPhysicalConditionTFArray;
}
- (NSArray *)guardianDisabilitySelectTFArray {
    if (!_guardianDisabilitySelectTFArray) {
        _guardianDisabilitySelectTFArray = @[@"多重残疾",@"精神残疾",@"智力残疾",@"肢体残疾",@"语言残疾",@"听力残疾",@"视力残疾"];
    }
    return _guardianDisabilitySelectTFArray;
}
- (NSArray *)guardianDisabilityLevelTFArray {
    if (!_guardianDisabilityLevelTFArray) {
        _guardianDisabilityLevelTFArray = @[@"一级",@"二级",@"三级",@"四级"];
    }
    return _guardianDisabilityLevelTFArray;
}
- (NSArray *)guardianOtherSpecialTFArray {
    if (!_guardianOtherSpecialTFArray) {
        _guardianOtherSpecialTFArray = @[@"其他",@"库流浪乞讨",@"酗酒",@"吸毒",@"轻微涉法"];
    }
    return _guardianOtherSpecialTFArray;
}
- (NSArray *)guardianScoreTFArray {
    if (!_guardianScoreTFArray) {
        _guardianScoreTFArray = @[@"较好",@"一般",@"差"];
    }
    return _guardianScoreTFArray;
}
- (NSArray *)salvationConditionTFArray {
    if (!_salvationConditionTFArray) {
        _salvationConditionTFArray = @[@"享受低保",@"临时救助",@"医疗救助",@"住房救助",@"其他救助"];
    }
    return _salvationConditionTFArray;
}
- (NSArray *)institutionalNatureTFArray {
    if (!_institutionalNatureTFArray) {
        _institutionalNatureTFArray = @[@"公办",@"民办"];
    }
    return _institutionalNatureTFArray;
}
- (NSArray *)helpProposalTFArray {
    if (!_helpProposalTFArray) {
        _helpProposalTFArray = @[@"经济帮扶",@"监护落实",@"户籍落实",@"教育帮扶",@"医疗帮扶",@"心理关爱",@"其他",@"无"];
    }
    return _helpProposalTFArray;
}

- (UITableView *)tableView {
    if (!_tableView) {
        _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight-SafeAreaTopHeight)];
        _tableView.separatorInset = UIEdgeInsetsZero;
        _tableView.backgroundColor = UIColor.whiteColor;
        _tableView.delegate = self;
        _tableView.dataSource = self;
        _tableView.tableFooterView = [UIView new];
        _tableView.backgroundColor = hexColor(EEEEEE);
        if (!self.isCheck) {
            _tableView.tableFooterView = self.tableViewFooterView;
        }
        [_tableView registerClass:LSInfoCollectTableViewCell.class forCellReuseIdentifier:KidsLeftAtHomeFoundationInfoCollectCellID];
    }
    return _tableView;
}

- (UIView *)tableViewFooterView {
    if (!_tableViewFooterView) {
        _tableViewFooterView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, 100)];
        UIButton *submitButton = [[UIButton alloc] initWithFrame:CGRectMake(15, 30, ScreenWidth-30, 40)];
        [submitButton setTitle:@"提交" forState:UIControlStateNormal];
        [submitButton setTitleColor:hexColor(ffffff) forState:UIControlStateNormal];
        submitButton.titleLabel.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:14];
        submitButton.backgroundColor = hexColor(FDBB2C);
        submitButton.layer.cornerRadius = 4;
        submitButton.layer.masksToBounds = true;
        [submitButton addTarget:self action:@selector(submitButtonClick) forControlEvents:UIControlEventTouchUpInside];
        [_tableViewFooterView addSubview:submitButton];
    }
    return _tableViewFooterView;
}

- (NSMutableArray *)childContentArrayM {
    if (!_childContentArrayM) {
        _childContentArrayM = [[NSMutableArray alloc] initWithArray:@[
                                                                      string1_1,
                                                                      string1_2,
                                                                      string1_3,
                                                                      string1_4,
                                                                      string1_5,
                                                                      string1_6,
                                                                      string1_7,
                                                                      string1_8,
                                                                      string1_9,
                                                                      string1_10,
                                                                      string1_15,
                                                                      string1_19,
                                                                      string1_20,
                                                                      string1_21,
                                                                      string1_23,
                                                                      string1_25
                                                                      ]];
    }
    return _childContentArrayM;
}

- (NSMutableArray *)familyContentArrayM {
    if (!_familyContentArrayM) {
        _familyContentArrayM = [[NSMutableArray alloc] initWithArray:@[
                                                                       string2_1,
                                                                       string2_2,
                                                                       string2_3,
                                                                       string2_4,
                                                                       string2_5,
                                                                       string2_6,
                                                                       string2_7,
                                                                       string2_8,
                                                                       string2_9,
                                                                       string2_10,
                                                                       string2_11,
                                                                       string2_12,
                                                                       string2_13,
                                                                       string2_17,
                                                                       string2_19,
                                                                       string2_21,
                                                                       string2_22,
                                                                       string2_23,
                                                                       string2_24,
                                                                       string2_25,
                                                                       string2_26,
                                                                       string2_27,
                                                                       string2_28,
                                                                       string2_29,
                                                                       string2_33,
                                                                       string2_35
                                                                       ]];
    }
    return _familyContentArrayM;
}

- (NSMutableArray *)custodyContentArrayM {
    if (!_custodyContentArrayM) {
        _custodyContentArrayM = [[NSMutableArray alloc] initWithArray:@[
                                                                        string3_1,
                                                                        string3_4,
                                                                        string3_15,
                                                                        string3_16,
                                                                        string3_17,
                                                                        string3_18,
                                                                        string3_19,
                                                                        string3_20,
                                                                        string3_21,
                                                                        string3_22
                                                                        ]];
    }
    return _custodyContentArrayM;
}

- (NSArray *)sectionTitleArray {
    if (!_sectionTitleArray) {
        _sectionTitleArray = @[@"留守儿童基本信息表",@"家庭情况表",@"实际监护情况表"];
    }
    return _sectionTitleArray;
}

#pragma mark - 留守儿童基本信息控件懒加载
- (UITextField *)nameTF {
    if (!_nameTF) {
        _nameTF = [[UITextField alloc] init];
        _nameTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _nameTF.delegate = self;
    }
    return _nameTF;
}
- (UITextField *)registerTypeTF {
    if (!_registerTypeTF) {
        _registerTypeTF = [[UITextField alloc] init];
        _registerTypeTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *registerTypeTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            registerTypeTFRightViewImageView.contentMode = UIViewContentModeCenter;
            registerTypeTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _registerTypeTF.rightView = registerTypeTFRightViewImageView;
            _registerTypeTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _registerTypeTF.delegate = self;
    }
    return _registerTypeTF;
}
- (UITextField *)nationTF {
    if (!_nationTF) {
        _nationTF = [[UITextField alloc] init];
        _nationTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *nationTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            nationTFRightViewImageView.contentMode = UIViewContentModeCenter;
            nationTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _nationTF.rightView = nationTFRightViewImageView;
            _nationTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _nationTF.delegate = self;
    }
    return _nationTF;
}
- (UITextField *)sexTF {
    if (!_sexTF) {
        _sexTF = [[UITextField alloc] init];
        _sexTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
//        if (!self.isCheck) {
//            UIImageView *sexTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
//            sexTFRightViewImageView.contentMode = UIViewContentModeCenter;
//            sexTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
//            _sexTF.rightView = sexTFRightViewImageView;
//            _sexTF.rightViewMode = UITextFieldViewModeAlways;
//        }
        _sexTF.delegate = self;
    }
    return _sexTF;
}
- (UITextField *)personalIDCardTF {
    if (!_personalIDCardTF) {
        _personalIDCardTF = [[UITextField alloc] init];
        _personalIDCardTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _personalIDCardTF.keyboardType = UIKeyboardTypeNumbersAndPunctuation;
        _personalIDCardTF.delegate = self;
    }
    return _personalIDCardTF;
}
- (UITextField *)birthdayTF {
    if (!_birthdayTF) {
        _birthdayTF = [[UITextField alloc] init];
        _birthdayTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
//        if (!self.isCheck) {
//            UIImageView *birthdayTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
//            birthdayTFRightViewImageView.contentMode = UIViewContentModeCenter;
//            birthdayTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
//            _birthdayTF.rightView = birthdayTFRightViewImageView;
//            _birthdayTF.rightViewMode = UITextFieldViewModeAlways;
//        }
        _birthdayTF.delegate = self;
    }
    return _birthdayTF;
}
- (UITextField *)regionCodeTF {
    if (!_regionCodeTF) {
        _regionCodeTF = [[UITextField alloc] init];
        _regionCodeTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *regionCodeTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            regionCodeTFRightViewImageView.contentMode = UIViewContentModeCenter;
            regionCodeTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _regionCodeTF.rightView = regionCodeTFRightViewImageView;
            _regionCodeTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _regionCodeTF.delegate = self;
    }
    return _regionCodeTF;
}
- (NZKTextView *)addressRegisterTV {
    if (!_addressRegisterTV) {
        _addressRegisterTV = [[NZKTextView alloc] init];
        _addressRegisterTV.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _addressRegisterTV.delegate = self;
        //内容缩进为0（去除左右边距）
        _addressRegisterTV.textContainer.lineFragmentPadding = 0;
        //文本边距设为0（去除上下边距）
        _addressRegisterTV.textContainerInset = UIEdgeInsetsMake(10, 0, 8, 0);
        _addressRegisterTV.placeHolder = @"限制在80字以内";
    }
    return _addressRegisterTV;
}
- (NZKTextView *)addressTV {
    if (!_addressTV) {
        _addressTV = [[NZKTextView alloc] init];
        _addressTV.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _addressTV.delegate = self;
        //内容缩进为0（去除左右边距）
        _addressTV.textContainer.lineFragmentPadding = 0;
        //文本边距设为0（去除上下边距）
        _addressTV.textContainerInset = UIEdgeInsetsMake(10, 0, 8, 0);
        _addressTV.placeHolder = @"限制在80字以内";
    }
    return _addressTV;
}
- (UITextField *)physicalConditionTF {
    if (!_physicalConditionTF) {
        _physicalConditionTF = [[UITextField alloc] init];
        _physicalConditionTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *physicalConditionTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            physicalConditionTFRightViewImageView.contentMode = UIViewContentModeCenter;
            physicalConditionTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _physicalConditionTF.rightView = physicalConditionTFRightViewImageView;
            _physicalConditionTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _physicalConditionTF.delegate = self;
    }
    return _physicalConditionTF;
}
- (UITextField *)doubtfulDisabilityTypeTF {
    if (!_doubtfulDisabilityTypeTF) {
        _doubtfulDisabilityTypeTF = [[UITextField alloc] init];
        _doubtfulDisabilityTypeTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *doubtfulDisabilityTypeTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            doubtfulDisabilityTypeTFRightViewImageView.contentMode = UIViewContentModeCenter;
            doubtfulDisabilityTypeTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _doubtfulDisabilityTypeTF.rightView = doubtfulDisabilityTypeTFRightViewImageView;
            _doubtfulDisabilityTypeTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _doubtfulDisabilityTypeTF.delegate = self;
    }
    return _doubtfulDisabilityTypeTF;
}
- (UITextField *)disabilitySelectTF {
    if (!_disabilitySelectTF) {
        _disabilitySelectTF = [[UITextField alloc] init];
        _disabilitySelectTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *disabilitySelectTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            disabilitySelectTFRightViewImageView.contentMode = UIViewContentModeCenter;
            disabilitySelectTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _disabilitySelectTF.rightView = disabilitySelectTFRightViewImageView;
            _disabilitySelectTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _disabilitySelectTF.delegate = self;
    }
    return _disabilitySelectTF;
}
- (UITextField *)disabilityLevelTF {
    if (!_disabilityLevelTF) {
        _disabilityLevelTF = [[UITextField alloc] init];
        _disabilityLevelTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *disabilityLevelTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            disabilityLevelTFRightViewImageView.contentMode = UIViewContentModeCenter;
            disabilityLevelTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _disabilityLevelTF.rightView = disabilityLevelTFRightViewImageView;
            _disabilityLevelTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _disabilityLevelTF.delegate = self;
    }
    return _disabilityLevelTF;
}
- (UITextField *)seriousIllnessTypeTF {
    if (!_seriousIllnessTypeTF) {
        _seriousIllnessTypeTF = [[UITextField alloc] init];
        _seriousIllnessTypeTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *seriousIllnessTypeTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            seriousIllnessTypeTFRightViewImageView.contentMode = UIViewContentModeCenter;
            seriousIllnessTypeTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _seriousIllnessTypeTF.rightView = seriousIllnessTypeTFRightViewImageView;
            _seriousIllnessTypeTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _seriousIllnessTypeTF.delegate = self;
    }
    return _seriousIllnessTypeTF;
}
- (UITextField *)reportTypeTF {
    if (!_reportTypeTF) {
        _reportTypeTF = [[UITextField alloc] init];
        _reportTypeTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *reportTypeTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            reportTypeTFRightViewImageView.contentMode = UIViewContentModeCenter;
            reportTypeTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _reportTypeTF.rightView = reportTypeTFRightViewImageView;
            _reportTypeTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _reportTypeTF.delegate = self;
    }
    return _reportTypeTF;
}
- (UITextField *)poorFamilyTypeTF {
    if (!_poorFamilyTypeTF) {
        _poorFamilyTypeTF = [[UITextField alloc] init];
        _poorFamilyTypeTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *poorFamilyTypeTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            poorFamilyTypeTFRightViewImageView.contentMode = UIViewContentModeCenter;
            poorFamilyTypeTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _poorFamilyTypeTF.rightView = poorFamilyTypeTFRightViewImageView;
            _poorFamilyTypeTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _poorFamilyTypeTF.delegate = self;
    }
    return _poorFamilyTypeTF;
}
- (UITextField *)custodyDilemmaTF {
    if (!_custodyDilemmaTF) {
        _custodyDilemmaTF = [[UITextField alloc] init];
        _custodyDilemmaTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *custodyDilemmaTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            custodyDilemmaTFRightViewImageView.contentMode = UIViewContentModeCenter;
            custodyDilemmaTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _custodyDilemmaTF.rightView = custodyDilemmaTFRightViewImageView;
            _custodyDilemmaTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _custodyDilemmaTF.delegate = self;
    }
    return _custodyDilemmaTF;
}
- (UITextField *)custodyNobodyTF {
    if (!_custodyNobodyTF) {
        _custodyNobodyTF = [[UITextField alloc] init];
        _custodyNobodyTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *custodyNobodyTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            custodyNobodyTFRightViewImageView.contentMode = UIViewContentModeCenter;
            custodyNobodyTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _custodyNobodyTF.rightView = custodyNobodyTFRightViewImageView;
            _custodyNobodyTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _custodyNobodyTF.delegate = self;
    }
    return _custodyNobodyTF;
}
- (UITextField *)schoolingTF {
    if (!_schoolingTF) {
        _schoolingTF = [[UITextField alloc] init];
        _schoolingTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *schoolingTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            schoolingTFRightViewImageView.contentMode = UIViewContentModeCenter;
            schoolingTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _schoolingTF.rightView = schoolingTFRightViewImageView;
            _schoolingTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _schoolingTF.delegate = self;
    }
    return _schoolingTF;
}
- (UITextField *)lodingTF {
    if (!_lodingTF) {
        _lodingTF = [[UITextField alloc] init];
        _lodingTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *lodingTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            lodingTFRightViewImageView.contentMode = UIViewContentModeCenter;
            lodingTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _lodingTF.rightView = lodingTFRightViewImageView;
            _lodingTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _lodingTF.delegate = self;
    }
    return _lodingTF;
}
- (UITextField *)otherSpecialTF {
    if (!_otherSpecialTF) {
        _otherSpecialTF = [[UITextField alloc] init];
        _otherSpecialTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *otherSpecialTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            otherSpecialTFRightViewImageView.contentMode = UIViewContentModeCenter;
            otherSpecialTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _otherSpecialTF.rightView = otherSpecialTFRightViewImageView;
            _otherSpecialTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _otherSpecialTF.delegate = self;
    }
    return _otherSpecialTF;
}
- (UITextField *)socialAssistanceTF {
    if (!_socialAssistanceTF) {
        _socialAssistanceTF = [[UITextField alloc] init];
        _socialAssistanceTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *socialAssistanceTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            socialAssistanceTFRightViewImageView.contentMode = UIViewContentModeCenter;
            socialAssistanceTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _socialAssistanceTF.rightView = socialAssistanceTFRightViewImageView;
            _socialAssistanceTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _socialAssistanceTF.delegate = self;
    }
    return _socialAssistanceTF;
}
- (UITextField *)encroachTF {
    if (!_encroachTF) {
        _encroachTF = [[UITextField alloc] init];
        _encroachTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *encroachTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            encroachTFRightViewImageView.contentMode = UIViewContentModeCenter;
            encroachTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _encroachTF.rightView = encroachTFRightViewImageView;
            _encroachTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _encroachTF.delegate = self;
    }
    return _encroachTF;
}
- (NZKTextView *)otherSpecialOtherTV {
    if (!_otherSpecialOtherTV) {
        _otherSpecialOtherTV = [[NZKTextView alloc] init];
        _otherSpecialOtherTV.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _otherSpecialOtherTV.delegate = self;
        //内容缩进为0（去除左右边距）
        _otherSpecialOtherTV.textContainer.lineFragmentPadding = 0;
        //文本边距设为0（去除上下边距）
        _otherSpecialOtherTV.textContainerInset = UIEdgeInsetsMake(10, 0, 8, 0);
        _otherSpecialOtherTV.placeHolder = string1_22;
    }
    return _otherSpecialOtherTV;
}
- (NZKTextView *)socialAssistanceOtherTV {
    if (!_socialAssistanceOtherTV) {
        _socialAssistanceOtherTV = [[NZKTextView alloc] init];
        _socialAssistanceOtherTV.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _socialAssistanceOtherTV.delegate = self;
        //内容缩进为0（去除左右边距）
        _socialAssistanceOtherTV.textContainer.lineFragmentPadding = 0;
        //文本边距设为0（去除上下边距）
        _socialAssistanceOtherTV.textContainerInset = UIEdgeInsetsMake(10, 0, 8, 0);
        _socialAssistanceOtherTV.placeHolder = string1_24;
    }
    return _socialAssistanceOtherTV;
}
- (NZKTextView *)encroachOtherTV {
    if (!_encroachOtherTV) {
        _encroachOtherTV = [[NZKTextView alloc] init];
        _encroachOtherTV.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _encroachOtherTV.delegate = self;
        //内容缩进为0（去除左右边距）
        _encroachOtherTV.textContainer.lineFragmentPadding = 0;
        //文本边距设为0（去除上下边距）
        _encroachOtherTV.textContainerInset = UIEdgeInsetsMake(10, 0, 8, 0);
        _encroachOtherTV.placeHolder = string1_26;
    }
    return _encroachOtherTV;
}

#pragma mark - 留守儿童家庭情况控件懒加载
- (UITextField *)grandfatherNameTF {
    if (!_grandfatherNameTF) {
        _grandfatherNameTF = [[UITextField alloc] init];
        _grandfatherNameTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _grandfatherNameTF.delegate = self;
    }
    return _grandfatherNameTF;
}
- (UITextField *)grandfatherBirthdayTF {
    if (!_grandfatherBirthdayTF) {
        _grandfatherBirthdayTF = [[UITextField alloc] init];
        _grandfatherBirthdayTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *grandfatherBirthdayTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            grandfatherBirthdayTFRightViewImageView.contentMode = UIViewContentModeCenter;
            grandfatherBirthdayTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _grandfatherBirthdayTF.rightView = grandfatherBirthdayTFRightViewImageView;
            _grandfatherBirthdayTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _grandfatherBirthdayTF.delegate = self;
    }
    return _grandfatherBirthdayTF;
}
- (UITextField *)grandmotherNameTF {
    if (!_grandmotherNameTF) {
        _grandmotherNameTF = [[UITextField alloc] init];
        _grandmotherNameTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _grandmotherNameTF.delegate = self;
    }
    return _grandmotherNameTF;
}
- (UITextField *)grandmotherBirthdayTF {
    if (!_grandmotherBirthdayTF) {
        _grandmotherBirthdayTF = [[UITextField alloc] init];
        _grandmotherBirthdayTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *grandmotherBirthdayTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            grandmotherBirthdayTFRightViewImageView.contentMode = UIViewContentModeCenter;
            grandmotherBirthdayTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _grandmotherBirthdayTF.rightView = grandmotherBirthdayTFRightViewImageView;
            _grandmotherBirthdayTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _grandmotherBirthdayTF.delegate = self;
    }
    return _grandmotherBirthdayTF;
}
- (UITextField *)fatherNameTF {
    if (!_fatherNameTF) {
        _fatherNameTF = [[UITextField alloc] init];
        _fatherNameTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _fatherNameTF.delegate = self;
    }
    return _fatherNameTF;
}
- (UITextField *)fatherBirthdayTF {
    if (!_fatherBirthdayTF) {
        _fatherBirthdayTF = [[UITextField alloc] init];
        _fatherBirthdayTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
//        if (!self.isCheck) {
//            UIImageView *fatherBirthdayTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
//            fatherBirthdayTFRightViewImageView.contentMode = UIViewContentModeCenter;
//            fatherBirthdayTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
//            _fatherBirthdayTF.rightView = fatherBirthdayTFRightViewImageView;
//            _fatherBirthdayTF.rightViewMode = UITextFieldViewModeAlways;
//        }
        _fatherBirthdayTF.delegate = self;
    }
    return _fatherBirthdayTF;
}
- (UITextField *)fatherTelephoneTF {
    if (!_fatherTelephoneTF) {
        _fatherTelephoneTF = [[UITextField alloc] init];
        _fatherTelephoneTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _fatherTelephoneTF.keyboardType = UIKeyboardTypePhonePad;
        _fatherTelephoneTF.delegate = self;
    }
    return _fatherTelephoneTF;
}
- (UITextField *)fatherIdcardTF {
    if (!_fatherIdcardTF) {
        _fatherIdcardTF = [[UITextField alloc] init];
        _fatherIdcardTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _fatherIdcardTF.keyboardType = UIKeyboardTypeNumbersAndPunctuation;
        _fatherIdcardTF.delegate = self;
    }
    return _fatherIdcardTF;
}
- (UITextField *)fatherRegisterRegionNameTF {
    if (!_fatherRegisterRegionNameTF) {
        _fatherRegisterRegionNameTF = [[UITextField alloc] init];
        _fatherRegisterRegionNameTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *fatherRegisterRegionNameTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            fatherRegisterRegionNameTFRightViewImageView.contentMode = UIViewContentModeCenter;
            fatherRegisterRegionNameTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _fatherRegisterRegionNameTF.rightView = fatherRegisterRegionNameTFRightViewImageView;
            _fatherRegisterRegionNameTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _fatherRegisterRegionNameTF.delegate = self;
    }
    return _fatherRegisterRegionNameTF;
}
- (NZKTextView *)fatherRegisterAddrTV {
    if (!_fatherRegisterAddrTV) {
        _fatherRegisterAddrTV = [[NZKTextView alloc] init];
        _fatherRegisterAddrTV.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _fatherRegisterAddrTV.delegate = self;
        //内容缩进为0（去除左右边距）
        _fatherRegisterAddrTV.textContainer.lineFragmentPadding = 0;
        //文本边距设为0（去除上下边距）
        _fatherRegisterAddrTV.textContainerInset = UIEdgeInsetsMake(10, 0, 8, 0);
        _fatherRegisterAddrTV.placeHolder = @"限制在256字以内";
    }
    return _fatherRegisterAddrTV;
}
- (UITextField *)fatherWorkplaceNameTF {
    if (!_fatherWorkplaceNameTF) {
        _fatherWorkplaceNameTF = [[UITextField alloc] init];
        _fatherWorkplaceNameTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *fatherWorkplaceNameTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            fatherWorkplaceNameTFRightViewImageView.contentMode = UIViewContentModeCenter;
            fatherWorkplaceNameTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _fatherWorkplaceNameTF.rightView = fatherWorkplaceNameTFRightViewImageView;
            _fatherWorkplaceNameTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _fatherWorkplaceNameTF.delegate = self;
    }
    return _fatherWorkplaceNameTF;
}
- (NZKTextView *)fatherWorkerAddrTV {
    if (!_fatherWorkerAddrTV) {
        _fatherWorkerAddrTV = [[NZKTextView alloc] init];
        _fatherWorkerAddrTV.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _fatherWorkerAddrTV.delegate = self;
        //内容缩进为0（去除左右边距）
        _fatherWorkerAddrTV.textContainer.lineFragmentPadding = 0;
        //文本边距设为0（去除上下边距）
        _fatherWorkerAddrTV.textContainerInset = UIEdgeInsetsMake(10, 0, 8, 0);
        _fatherWorkerAddrTV.placeHolder = @"限制在256字以内";
    }
    return _fatherWorkerAddrTV;
}
- (UITextField *)fatherHealthTF {
    if (!_fatherHealthTF) {
        _fatherHealthTF = [[UITextField alloc] init];
        _fatherHealthTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *fatherHealthTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            fatherHealthTFRightViewImageView.contentMode = UIViewContentModeCenter;
            fatherHealthTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _fatherHealthTF.rightView = fatherHealthTFRightViewImageView;
            _fatherHealthTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _fatherHealthTF.delegate = self;
    }
    return _fatherHealthTF;
}
- (UITextField *)fatherDisTypeTF {
    if (!_fatherDisTypeTF) {
        _fatherDisTypeTF = [[UITextField alloc] init];
        _fatherDisTypeTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *fatherDisTypeTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            fatherDisTypeTFRightViewImageView.contentMode = UIViewContentModeCenter;
            fatherDisTypeTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _fatherDisTypeTF.rightView = fatherDisTypeTFRightViewImageView;
            _fatherDisTypeTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _fatherDisTypeTF.delegate = self;
    }
    return _fatherDisTypeTF;
}
- (UITextField *)fatherDisLevelTF {
    if (!_fatherDisLevelTF) {
        _fatherDisLevelTF = [[UITextField alloc] init];
        _fatherDisLevelTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *fatherDisLevelTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            fatherDisLevelTFRightViewImageView.contentMode = UIViewContentModeCenter;
            fatherDisLevelTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _fatherDisLevelTF.rightView = fatherDisLevelTFRightViewImageView;
            _fatherDisLevelTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _fatherDisLevelTF.delegate = self;
    }
    return _fatherDisLevelTF;
}
- (UITextField *)fatherSeriousIllnessTypeTF {
    if (!_fatherSeriousIllnessTypeTF) {
        _fatherSeriousIllnessTypeTF = [[UITextField alloc] init];
        _fatherSeriousIllnessTypeTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *fatherSeriousIllnessTypeTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            fatherSeriousIllnessTypeTFRightViewImageView.contentMode = UIViewContentModeCenter;
            fatherSeriousIllnessTypeTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _fatherSeriousIllnessTypeTF.rightView = fatherSeriousIllnessTypeTFRightViewImageView;
            _fatherSeriousIllnessTypeTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _fatherSeriousIllnessTypeTF.delegate = self;
    }
    return _fatherSeriousIllnessTypeTF;
}
- (UITextField *)fatherFamilyshipTF {
    if (!_fatherFamilyshipTF) {
        _fatherFamilyshipTF = [[UITextField alloc] init];
        _fatherFamilyshipTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *fatherFamilyshipTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            fatherFamilyshipTFRightViewImageView.contentMode = UIViewContentModeCenter;
            fatherFamilyshipTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _fatherFamilyshipTF.rightView = fatherFamilyshipTFRightViewImageView;
            _fatherFamilyshipTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _fatherFamilyshipTF.delegate = self;
    }
    return _fatherFamilyshipTF;
}
- (UITextField *)fatherOtherSpecialTF {
    if (!_fatherOtherSpecialTF) {
        _fatherOtherSpecialTF = [[UITextField alloc] init];
        _fatherOtherSpecialTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *fatherOtherSpecialTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            fatherOtherSpecialTFRightViewImageView.contentMode = UIViewContentModeCenter;
            fatherOtherSpecialTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _fatherOtherSpecialTF.rightView = fatherOtherSpecialTFRightViewImageView;
            _fatherOtherSpecialTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _fatherOtherSpecialTF.delegate = self;
    }
    return _fatherOtherSpecialTF;
}
- (NZKTextView *)fatherFamilyshipOtherTV {
    if (!_fatherFamilyshipOtherTV) {
        _fatherFamilyshipOtherTV = [[NZKTextView alloc] init];
        _fatherFamilyshipOtherTV.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _fatherFamilyshipOtherTV.delegate = self;
        //内容缩进为0（去除左右边距）
        _fatherFamilyshipOtherTV.textContainer.lineFragmentPadding = 0;
        //文本边距设为0（去除上下边距）
        _fatherFamilyshipOtherTV.textContainerInset = UIEdgeInsetsMake(10, 0, 8, 0);
        _fatherFamilyshipOtherTV.placeHolder = @"请输入父亲其他家庭经济来源";
    }
    return _fatherFamilyshipOtherTV;
}
- (NZKTextView *)fatherOtherSpecialOtherTV {
    if (!_fatherOtherSpecialOtherTV) {
        _fatherOtherSpecialOtherTV = [[NZKTextView alloc] init];
        _fatherOtherSpecialOtherTV.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _fatherOtherSpecialOtherTV.delegate = self;
        //内容缩进为0（去除左右边距）
        _fatherOtherSpecialOtherTV.textContainer.lineFragmentPadding = 0;
        //文本边距设为0（去除上下边距）
        _fatherOtherSpecialOtherTV.textContainerInset = UIEdgeInsetsMake(10, 0, 8, 0);
        _fatherOtherSpecialOtherTV.placeHolder = @"请输入父亲其他特殊情况";
    }
    return _fatherOtherSpecialOtherTV;
}
- (UITextField *)motherNameTF {
    if (!_motherNameTF) {
        _motherNameTF = [[UITextField alloc] init];
        _motherNameTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _motherNameTF.delegate = self;
    }
    return _motherNameTF;
}
- (UITextField *)motherBirthdayTF {
    if (!_motherBirthdayTF) {
        _motherBirthdayTF = [[UITextField alloc] init];
        _motherBirthdayTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
//        if (!self.isCheck) {
//            UIImageView *motherBirthdayTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
//            motherBirthdayTFRightViewImageView.contentMode = UIViewContentModeCenter;
//            motherBirthdayTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
//            _motherBirthdayTF.rightView = motherBirthdayTFRightViewImageView;
//            _motherBirthdayTF.rightViewMode = UITextFieldViewModeAlways;
//        }
        _motherBirthdayTF.delegate = self;
    }
    return _motherBirthdayTF;
}
- (UITextField *)motherTelephoneTF {
    if (!_motherTelephoneTF) {
        _motherTelephoneTF = [[UITextField alloc] init];
        _motherTelephoneTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _motherTelephoneTF.keyboardType = UIKeyboardTypePhonePad;
        _motherTelephoneTF.delegate = self;
    }
    return _motherTelephoneTF;
}
- (UITextField *)motherIdcardTF {
    if (!_motherIdcardTF) {
        _motherIdcardTF = [[UITextField alloc] init];
        _motherIdcardTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _motherIdcardTF.keyboardType = UIKeyboardTypeNumbersAndPunctuation;
        _motherIdcardTF.delegate = self;
    }
    return _motherIdcardTF;
}
- (UITextField *)motherRegisterRegionNameTF {
    if (!_motherRegisterRegionNameTF) {
        _motherRegisterRegionNameTF = [[UITextField alloc] init];
        _motherRegisterRegionNameTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *motherRegisterRegionNameTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            motherRegisterRegionNameTFRightViewImageView.contentMode = UIViewContentModeCenter;
            motherRegisterRegionNameTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _motherRegisterRegionNameTF.rightView = motherRegisterRegionNameTFRightViewImageView;
            _motherRegisterRegionNameTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _motherRegisterRegionNameTF.delegate = self;
    }
    return _motherRegisterRegionNameTF;
}
- (NZKTextView *)motherRegisterAddrTV {
    if (!_motherRegisterAddrTV) {
        _motherRegisterAddrTV = [[NZKTextView alloc] init];
        _motherRegisterAddrTV.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _motherRegisterAddrTV.delegate = self;
        //内容缩进为0（去除左右边距）
        _motherRegisterAddrTV.textContainer.lineFragmentPadding = 0;
        //文本边距设为0（去除上下边距）
        _motherRegisterAddrTV.textContainerInset = UIEdgeInsetsMake(10, 0, 8, 0);
        _motherRegisterAddrTV.placeHolder = @"限制在256字以内";
    }
    return _motherRegisterAddrTV;
}
- (UITextField *)motherWorkplaceNameTF {
    if (!_motherWorkplaceNameTF) {
        _motherWorkplaceNameTF = [[UITextField alloc] init];
        _motherWorkplaceNameTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *motherWorkplaceNameTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            motherWorkplaceNameTFRightViewImageView.contentMode = UIViewContentModeCenter;
            motherWorkplaceNameTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _motherWorkplaceNameTF.rightView = motherWorkplaceNameTFRightViewImageView;
            _motherWorkplaceNameTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _motherWorkplaceNameTF.delegate = self;
    }
    return _motherWorkplaceNameTF;
}
- (NZKTextView *)motherWorkerAddrTV {
    if (!_motherWorkerAddrTV) {
        _motherWorkerAddrTV = [[NZKTextView alloc] init];
        _motherWorkerAddrTV.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _motherWorkerAddrTV.delegate = self;
        //内容缩进为0（去除左右边距）
        _motherWorkerAddrTV.textContainer.lineFragmentPadding = 0;
        //文本边距设为0（去除上下边距）
        _motherWorkerAddrTV.textContainerInset = UIEdgeInsetsMake(10, 0, 8, 0);
        _motherWorkerAddrTV.placeHolder = @"限制在256字以内";
    }
    return _motherWorkerAddrTV;
}
- (UITextField *)motherHealthTF {
    if (!_motherHealthTF) {
        _motherHealthTF = [[UITextField alloc] init];
        _motherHealthTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *motherHealthTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            motherHealthTFRightViewImageView.contentMode = UIViewContentModeCenter;
            motherHealthTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _motherHealthTF.rightView = motherHealthTFRightViewImageView;
            _motherHealthTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _motherHealthTF.delegate = self;
    }
    return _motherHealthTF;
}
- (UITextField *)motherDisTypeTF {
    if (!_motherDisTypeTF) {
        _motherDisTypeTF = [[UITextField alloc] init];
        _motherDisTypeTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *motherDisTypeTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            motherDisTypeTFRightViewImageView.contentMode = UIViewContentModeCenter;
            motherDisTypeTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _motherDisTypeTF.rightView = motherDisTypeTFRightViewImageView;
            _motherDisTypeTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _motherDisTypeTF.delegate = self;
    }
    return _motherDisTypeTF;
}
- (UITextField *)motherDisLevelTF {
    if (!_motherDisLevelTF) {
        _motherDisLevelTF = [[UITextField alloc] init];
        _motherDisLevelTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *motherDisLevelTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            motherDisLevelTFRightViewImageView.contentMode = UIViewContentModeCenter;
            motherDisLevelTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _motherDisLevelTF.rightView = motherDisLevelTFRightViewImageView;
            _motherDisLevelTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _motherDisLevelTF.delegate = self;
    }
    return _motherDisLevelTF;
}
- (UITextField *)motherSeriousIllnessTypeTF {
    if (!_motherSeriousIllnessTypeTF) {
        _motherSeriousIllnessTypeTF = [[UITextField alloc] init];
        _motherSeriousIllnessTypeTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *motherSeriousIllnessTypeTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            motherSeriousIllnessTypeTFRightViewImageView.contentMode = UIViewContentModeCenter;
            motherSeriousIllnessTypeTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _motherSeriousIllnessTypeTF.rightView = motherSeriousIllnessTypeTFRightViewImageView;
            _motherSeriousIllnessTypeTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _motherSeriousIllnessTypeTF.delegate = self;
    }
    return _motherSeriousIllnessTypeTF;
}
- (UITextField *)motherFamilyshipTF {
    if (!_motherFamilyshipTF) {
        _motherFamilyshipTF = [[UITextField alloc] init];
        _motherFamilyshipTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *motherFamilyshipTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            motherFamilyshipTFRightViewImageView.contentMode = UIViewContentModeCenter;
            motherFamilyshipTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _motherFamilyshipTF.rightView = motherFamilyshipTFRightViewImageView;
            _motherFamilyshipTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _motherFamilyshipTF.delegate = self;
    }
    return _motherFamilyshipTF;
}
- (UITextField *)motherOtherSpecialTF {
    if (!_motherOtherSpecialTF) {
        _motherOtherSpecialTF = [[UITextField alloc] init];
        _motherOtherSpecialTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *motherOtherSpecialTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            motherOtherSpecialTFRightViewImageView.contentMode = UIViewContentModeCenter;
            motherOtherSpecialTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _motherOtherSpecialTF.rightView = motherOtherSpecialTFRightViewImageView;
            _motherOtherSpecialTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _motherOtherSpecialTF.delegate = self;
    }
    return _motherOtherSpecialTF;
}
- (NZKTextView *)motherFamilyshipOtherTV {
    if (!_motherFamilyshipOtherTV) {
        _motherFamilyshipOtherTV = [[NZKTextView alloc] init];
        _motherFamilyshipOtherTV.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _motherFamilyshipOtherTV.delegate = self;
        //内容缩进为0（去除左右边距）
        _motherFamilyshipOtherTV.textContainer.lineFragmentPadding = 0;
        //文本边距设为0（去除上下边距）
        _motherFamilyshipOtherTV.textContainerInset = UIEdgeInsetsMake(10, 0, 8, 0);
        _motherFamilyshipOtherTV.placeHolder = @"请输入母亲其他家庭经济来源";
    }
    return _motherFamilyshipOtherTV;
}
- (NZKTextView *)motherOtherSpecialOtherTV {
    if (!_motherOtherSpecialOtherTV) {
        _motherOtherSpecialOtherTV = [[NZKTextView alloc] init];
        _motherOtherSpecialOtherTV.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _motherOtherSpecialOtherTV.delegate = self;
        //内容缩进为0（去除左右边距）
        _motherOtherSpecialOtherTV.textContainer.lineFragmentPadding = 0;
        //文本边距设为0（去除上下边距）
        _motherOtherSpecialOtherTV.textContainerInset = UIEdgeInsetsMake(10, 0, 8, 0);
        _motherOtherSpecialOtherTV.placeHolder = @"请输入母亲其他特殊情况";
    }
    return _motherOtherSpecialOtherTV;
}

#pragma mark - 实际监护情况控件懒加载
- (UITextField *)alloutTF {
    if (!_alloutTF) {
        _alloutTF = [[UITextField alloc] init];
        _alloutTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *alloutTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            alloutTFRightViewImageView.contentMode = UIViewContentModeCenter;
            alloutTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _alloutTF.rightView = alloutTFRightViewImageView;
            _alloutTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _alloutTF.delegate = self;
    }
    return _alloutTF;
}
- (UITextField *)oneoutTF {
    if (!_oneoutTF) {
        _oneoutTF = [[UITextField alloc] init];
        _oneoutTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *oneoutTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            oneoutTFRightViewImageView.contentMode = UIViewContentModeCenter;
            oneoutTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _oneoutTF.rightView = oneoutTFRightViewImageView;
            _oneoutTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _oneoutTF.delegate = self;
    }
    return _oneoutTF;
}
- (UITextField *)whoCantTF {
    if (!_whoCantTF) {
        _whoCantTF = [[UITextField alloc] init];
        _whoCantTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *whoCantTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            whoCantTFRightViewImageView.contentMode = UIViewContentModeCenter;
            whoCantTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _whoCantTF.rightView = whoCantTFRightViewImageView;
            _whoCantTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _whoCantTF.delegate = self;
    }
    return _whoCantTF;
}
- (UITextField *)delegationTF {
    if (!_delegationTF) {
        _delegationTF = [[UITextField alloc] init];
        _delegationTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *delegationTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            delegationTFRightViewImageView.contentMode = UIViewContentModeCenter;
            delegationTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _delegationTF.rightView = delegationTFRightViewImageView;
            _delegationTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _delegationTF.delegate = self;
    }
    return _delegationTF;
}
- (UITextField *)guardianNameTF {
    if (!_guardianNameTF) {
        _guardianNameTF = [[UITextField alloc] init];
        _guardianNameTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _guardianNameTF.delegate = self;
    }
    return _guardianNameTF;
}
- (UITextField *)guardianTelephoneTF {
    if (!_guardianTelephoneTF) {
        _guardianTelephoneTF = [[UITextField alloc] init];
        _guardianTelephoneTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _guardianTelephoneTF.keyboardType = UIKeyboardTypePhonePad;
        _guardianTelephoneTF.delegate = self;
    }
    return _guardianTelephoneTF;
}
- (UITextField *)guardianIdcardTF {
    if (!_guardianIdcardTF) {
        _guardianIdcardTF = [[UITextField alloc] init];
        _guardianIdcardTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _guardianIdcardTF.keyboardType = UIKeyboardTypeNumbersAndPunctuation;
        _guardianIdcardTF.delegate = self;
    }
    return _guardianIdcardTF;
}
- (NZKTextView *)guardianAddressTV {
    if (!_guardianAddressTV) {
        _guardianAddressTV = [[NZKTextView alloc] init];
        _guardianAddressTV.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _guardianAddressTV.delegate = self;
        //内容缩进为0（去除左右边距）
        _guardianAddressTV.textContainer.lineFragmentPadding = 0;
        //文本边距设为0（去除上下边距）
        _guardianAddressTV.textContainerInset = UIEdgeInsetsMake(10, 0, 8, 0);
        _guardianAddressTV.placeHolder = @"限制在30字以内";
    }
    return _guardianAddressTV;
}
- (UITextField *)guardianShipTF {
    if (!_guardianShipTF) {
        _guardianShipTF = [[UITextField alloc] init];
        _guardianShipTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *guardianShipTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            guardianShipTFRightViewImageView.contentMode = UIViewContentModeCenter;
            guardianShipTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _guardianShipTF.rightView = guardianShipTFRightViewImageView;
            _guardianShipTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _guardianShipTF.delegate = self;
    }
    return _guardianShipTF;
}
- (UITextField *)guardianTypeTF {
    if (!_guardianTypeTF) {
        _guardianTypeTF = [[UITextField alloc] init];
        _guardianTypeTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *guardianTypeTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            guardianTypeTFRightViewImageView.contentMode = UIViewContentModeCenter;
            guardianTypeTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _guardianTypeTF.rightView = guardianTypeTFRightViewImageView;
            _guardianTypeTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _guardianTypeTF.delegate = self;
    }
    return _guardianTypeTF;
}
- (UITextField *)guardianPhysicalConditionTF {
    if (!_guardianPhysicalConditionTF) {
        _guardianPhysicalConditionTF = [[UITextField alloc] init];
        _guardianPhysicalConditionTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *guardianPhysicalConditionTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            guardianPhysicalConditionTFRightViewImageView.contentMode = UIViewContentModeCenter;
            guardianPhysicalConditionTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _guardianPhysicalConditionTF.rightView = guardianPhysicalConditionTFRightViewImageView;
            _guardianPhysicalConditionTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _guardianPhysicalConditionTF.delegate = self;
    }
    return _guardianPhysicalConditionTF;
}
- (UITextField *)guardianDisabilitySelectTF {
    if (!_guardianDisabilitySelectTF) {
        _guardianDisabilitySelectTF = [[UITextField alloc] init];
        _guardianDisabilitySelectTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *guardianDisabilitySelectTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            guardianDisabilitySelectTFRightViewImageView.contentMode = UIViewContentModeCenter;
            guardianDisabilitySelectTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _guardianDisabilitySelectTF.rightView = guardianDisabilitySelectTFRightViewImageView;
            _guardianDisabilitySelectTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _guardianDisabilitySelectTF.delegate = self;
    }
    return _guardianDisabilitySelectTF;
}
- (UITextField *)guardianDisabilityLevelTF {
    if (!_guardianDisabilityLevelTF) {
        _guardianDisabilityLevelTF = [[UITextField alloc] init];
        _guardianDisabilityLevelTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *guardianDisabilityLevelTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            guardianDisabilityLevelTFRightViewImageView.contentMode = UIViewContentModeCenter;
            guardianDisabilityLevelTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _guardianDisabilityLevelTF.rightView = guardianDisabilityLevelTFRightViewImageView;
            _guardianDisabilityLevelTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _guardianDisabilityLevelTF.delegate = self;
    }
    return _guardianDisabilityLevelTF;
}
- (UITextField *)guardianSeriousIllnessTypeTF {
    if (!_guardianSeriousIllnessTypeTF) {
        _guardianSeriousIllnessTypeTF = [[UITextField alloc] init];
        _guardianSeriousIllnessTypeTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *guardianSeriousIllnessTypeTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            guardianSeriousIllnessTypeTFRightViewImageView.contentMode = UIViewContentModeCenter;
            guardianSeriousIllnessTypeTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _guardianSeriousIllnessTypeTF.rightView = guardianSeriousIllnessTypeTFRightViewImageView;
            _guardianSeriousIllnessTypeTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _guardianSeriousIllnessTypeTF.delegate = self;
    }
    return _guardianSeriousIllnessTypeTF;
}
- (UITextField *)guardianOtherSpecialTF {
    if (!_guardianOtherSpecialTF) {
        _guardianOtherSpecialTF = [[UITextField alloc] init];
        _guardianOtherSpecialTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *guardianOtherSpecialTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            guardianOtherSpecialTFRightViewImageView.contentMode = UIViewContentModeCenter;
            guardianOtherSpecialTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _guardianOtherSpecialTF.rightView = guardianOtherSpecialTFRightViewImageView;
            _guardianOtherSpecialTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _guardianOtherSpecialTF.delegate = self;
    }
    return _guardianOtherSpecialTF;
}
- (UITextField *)guardianScoreTF {
    if (!_guardianScoreTF) {
        _guardianScoreTF = [[UITextField alloc] init];
        _guardianScoreTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *guardianScoreTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            guardianScoreTFRightViewImageView.contentMode = UIViewContentModeCenter;
            guardianScoreTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _guardianScoreTF.rightView = guardianScoreTFRightViewImageView;
            _guardianScoreTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _guardianScoreTF.delegate = self;
    }
    return _guardianScoreTF;
}
- (UITextField *)salvationConditionTF {
    if (!_salvationConditionTF) {
        _salvationConditionTF = [[UITextField alloc] init];
        _salvationConditionTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *salvationConditionTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            salvationConditionTFRightViewImageView.contentMode = UIViewContentModeCenter;
            salvationConditionTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _salvationConditionTF.rightView = salvationConditionTFRightViewImageView;
            _salvationConditionTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _salvationConditionTF.delegate = self;
    }
    return _salvationConditionTF;
}
- (UITextField *)responsibilityTF {
    if (!_responsibilityTF) {
        _responsibilityTF = [[UITextField alloc] init];
        _responsibilityTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _responsibilityTF.delegate = self;
    }
    return _responsibilityTF;
}
- (UITextField *)orgPhoneTF {
    if (!_orgPhoneTF) {
        _orgPhoneTF = [[UITextField alloc] init];
        _orgPhoneTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _orgPhoneTF.keyboardType = UIKeyboardTypePhonePad;
        _orgPhoneTF.delegate = self;
    }
    return _orgPhoneTF;
}
- (UITextField *)orgTelephoneTF {
    if (!_orgTelephoneTF) {
        _orgTelephoneTF = [[UITextField alloc] init];
        _orgTelephoneTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _orgTelephoneTF.keyboardType = UIKeyboardTypePhonePad;
        _orgTelephoneTF.delegate = self;
    }
    return _orgTelephoneTF;
}
- (UITextField *)institutionalNatureTF {
    if (!_institutionalNatureTF) {
        _institutionalNatureTF = [[UITextField alloc] init];
        _institutionalNatureTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *institutionalNatureTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            institutionalNatureTFRightViewImageView.contentMode = UIViewContentModeCenter;
            institutionalNatureTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _institutionalNatureTF.rightView = institutionalNatureTFRightViewImageView;
            _institutionalNatureTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _institutionalNatureTF.delegate = self;
    }
    return _institutionalNatureTF;
}
- (NZKTextView *)orgAddressTV {
    if (!_orgAddressTV) {
        _orgAddressTV = [[NZKTextView alloc] init];
        _orgAddressTV.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        _orgAddressTV.delegate = self;
        //内容缩进为0（去除左右边距）
        _orgAddressTV.textContainer.lineFragmentPadding = 0;
        //文本边距设为0（去除上下边距）
        _orgAddressTV.textContainerInset = UIEdgeInsetsMake(10, 0, 8, 0);
        _orgAddressTV.placeHolder = @"限制在50字以内";
    }
    return _orgAddressTV;
}
- (UITextField *)helpProposalTF {
    if (!_helpProposalTF) {
        _helpProposalTF = [[UITextField alloc] init];
        _helpProposalTF.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:FontSize];
        if (!self.isCheck) {
            UIImageView *helpProposalTFRightViewImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44-8, 44-8)];
            helpProposalTFRightViewImageView.contentMode = UIViewContentModeCenter;
            helpProposalTFRightViewImageView.image = [UIImage imageNamed:@"xiala"];
            _helpProposalTF.rightView = helpProposalTFRightViewImageView;
            _helpProposalTF.rightViewMode = UITextFieldViewModeAlways;
        }
        _helpProposalTF.delegate = self;
    }
    return _helpProposalTF;
}

@end
